]> git.ipfire.org Git - ipfire.org.git/commitdiff
auth: Fix redirection when next is unset
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Nov 2019 12:06:25 +0000 (12:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Nov 2019 12:06:25 +0000 (12:06 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/auth/login.html

index 897a1955d9194583ccadc1fefd0b1878ca93b3e0..d359dd4392e50799117c1be640793c955685522e 100644 (file)
@@ -18,7 +18,7 @@
                                        <form action="" method="POST">
                                                {% raw xsrf_form_html() %}
 
-                                               <input type="hidden" name="next" value="{{ next or "" }}">
+                                               {% if next %}<input type="hidden" name="next" value="{{ next }}">{% end %}
 
                                                <div class="form-group">
                                                        <input type="text" class="form-control form-control-lg"