/usr/share/doc/lua-cgi/examples/login.lp is in lua-cgi 5.2~alpha2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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>
|