summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/login.tmpl16
1 files changed, 10 insertions, 6 deletions
diff --git a/templates/login.tmpl b/templates/login.tmpl
index af2f955..505a885 100644
--- a/templates/login.tmpl
+++ b/templates/login.tmpl
@@ -4,17 +4,21 @@
#def content
#set error = $error or ''
<div class="error">$error</div>
+#if $loggedin
+ <p>You are now logged in as $user.username.
+ To change your session settings, please use the form below.
+ Or <a href="${settings.virtual_root}u">return to the upload page</a>.
+ </p>
+#end if
+#if $user
<form method="post" action="${settings.virtual_root}l">
#if next
<input type="hidden" name="next" value="$next" />
#end if
- <p>username</p>
- <p><input type="text" id="username" name="username" /></p>
- <p>password</p>
- <p><input type="password" id="password" name="password" /></p>
- <p><input type="checkbox" id="rememberme" name="rememberme" checked="checked" />
+ <p><input type="checkbox" id="rememberme" name="rememberme" />
<label for="rememberme"> remember me</label></p>
<p><input type="checkbox" id="forever" name="forever" /><label for="forever"> .. forever</label></p>
- <p><input type="submit" value="Login" /></p>
+ <p><input type="submit" value="Update" /></p>
</form>
+#end if
#end def