]> Dogcows Code - chaz/chatty/blobdiff - root/tt/login.tt
implemented session tracking and authentication
[chaz/chatty] / root / tt / login.tt
diff --git a/root/tt/login.tt b/root/tt/login.tt
new file mode 100644 (file)
index 0000000..d2b70e2
--- /dev/null
@@ -0,0 +1,13 @@
+<h1>Log In</h1>
+[% IF ! c.user_exists %]
+<form action="[% c.uri_for('login')  %]" method="post">
+       <label for="handle">Username</label>
+       <input type="text" name="handle" id="handle">
+       <label for="password">Password</label>
+       <input type="password" name="password" id="password">
+       <input type="submit" value="Login">
+</form>
+[% ELSE %]
+<p>You are already logged in.</p>
+<a href="[% c.uri_for('logout') %]">Log Out</a>
+[% END %]
This page took 0.017489 seconds and 4 git commands to generate.