diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2012-05-23 18:38:39 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2012-05-23 18:38:39 +0200 |
commit | abf310d70377ce24edba54180804654301f971a8 (patch) | |
tree | acb77e58db23889880076d3b3758c572bda7bee7 /templates | |
parent | 9f9645356bcd89a3ee93b9db39093c627eadf435 (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.tmpl | 3 |
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> |