aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-19 22:27:31 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-19 22:27:31 +0200
commitfd9e2f7245212f2b652652f4669648260e59f9e9 (patch)
tree35e12c2f78cde9338f34780921cd8020eea1bbb4 /t
parent93c1df59ef14348e9a3e1d66ea0b96960f5b5732 (diff)
downloadcforum-fd9e2f7245212f2b652652f4669648260e59f9e9.tar.gz
Add bcrypt
Diffstat (limited to 't')
-rw-r--r--t/login.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/login.t b/t/login.t
new file mode 100644
index 0000000..4899507
--- /dev/null
+++ b/t/login.t
@@ -0,0 +1,19 @@
+<% #include "head.tc" %>
+<h1>Log In</h1>
+<% if(*msg){ %>
+<p style="color: red;"><%= msg %></p>
+<% } %>
+<form class="<% if(hlite) printf("hlite-%s", hlite); %>" action="?new=session" method="POST">
+ <table border="0">
+ <tr id="name">
+ <td><label for="name">Username</label></td>
+ <td><input type="text" name="name" value="<% if(name) printhtml(name); %>"></td>
+ </tr>
+ <tr id="pass">
+ <td><label for="pass">Password</label></td>
+ <td><input type="password" name="pass" value=""></td>
+ </tr>
+ </table>
+ <p><input type="submit" value="Log in &rarr;"></p>
+</form>
+<% #include "foot.tc" %> \ No newline at end of file