File: login.lp

package info (click to toggle)
lua-cgi 5.2~alpha2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 848 kB
  • sloc: javascript: 2,216; makefile: 25
file content (20 lines) | stat: -rwxr-xr-x 577 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html>
<head>
<title>Login</title>
</head>

<body>
    <% if logged then %>
    <p>User <%= username %> logged in</p>
    <a href="<%= logoutURL %>">Logout</a>
    <% else %>
    <p style="color:#ff0000"><%= errorMsg %> </p>
    <form method="post" action="" >
        User name: <input name="username" maxlength="20" size="20" value="<%= username %>" ><br />
        Password: <input name="pass" type="password" maxlength="20" size="20"><br />
        <input type="submit" value="Login" />
        <input type="reset" value="Reset" />
    </form>
    <% end %>
</body>
</html>