]> git.ipfire.org Git - ipfire.org.git/commitdiff
login: Fix when no next parameter is given
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 13:09:41 +0000 (14:09 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 13:09:41 +0000 (14:09 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/auth/login.html

index 5bf91c7510bdb385a804b247983eefdc6361120b..f591468dab44ed267c78ada1c7a9f0b3cb7381ae 100644 (file)
@@ -12,7 +12,7 @@
                                        <form action="" method="POST">
                                                {% raw xsrf_form_html() %}
 
-                                               <input type="hidden" name="next" value="{{ next }}">
+                                               <input type="hidden" name="next" value="{{ next or "" }}">
 
                                                <input type="text" class="form-control form-control-lg"
                                                        name="username" placeholder="{{ _("Username") }}" required autofocus>