summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2012-05-23 18:38:39 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2012-05-23 18:38:39 +0200
commitabf310d70377ce24edba54180804654301f971a8 (patch)
treeacb77e58db23889880076d3b3758c572bda7bee7 /templates
parent9f9645356bcd89a3ee93b9db39093c627eadf435 (diff)
Redirect to login page and back to the original page afterwards when login is required.
Diffstat (limited to 'templates')
-rw-r--r--templates/login.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/login.tmpl b/templates/login.tmpl
index d8aaded..7638c07 100644
--- a/templates/login.tmpl
+++ b/templates/login.tmpl
@@ -5,6 +5,9 @@
#set error = $error or ''
<div class="error">$error</div>
<form method="post" action="${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>