login_page

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "login_page".
... in login.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<macro name="login_page" requires="servlet">
    <n.set_var. name="error"><n.false/></n.set_var.>
    <n.if.is_submitted_form>
        <then>
            <n.do_login>
                <email><n.email_field.value/></email>
                <password><n.password_field.value/></password>
                <nextUrl><n.nextUrl_field.value/></nextUrl>
            </n.do_login>
            <n.set_var. name="error"><n.true/></n.set_var.>
        </then>
    </n.if.is_submitted_form>
    <n.html>
        <head>
            <meta name="robots" content="noindex,nofollow"/>
            <n.title.><t>Login</t></n.title.>
            <n.email_field.focus/>
            <script type="text/javascript">
                var loginNextUrl = '<n.default. to="/"><n.nextUrl_field.value/></n.default.>';
            </script>
        </head>
        <body>
            <h1 class="weak-color"><t>Login</t></h1>
 
            <n.login_message/>
 
            <n.if.var name="error">
                <then.format_error
                    message="[t]Incorrect Login![/t]"
                    prompt="[t]Please re-enter your email/password and click Login.[/t]"
                />
            </n.if.var>
 
            <n.login_form/>
            <n.register_now_section/>
        </body>
    </n.html>
</macro>