Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix next_page being passed as a GET parameter in login form.

  • Loading branch information...
commit 56fcf78808e13364875751e1a8fc0918da5f8725 1 parent 370a6ff
@bmispelon bmispelon authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 templates/registration/login.html
View
6 templates/registration/login.html
@@ -10,7 +10,9 @@
<p class="error">Please correct the errors below:</p>
{% endif %}
-<form method="post" action="?next={{ next|default:"/" }}">{% csrf_token %}
+<form method="post" action="">
+{% csrf_token %}
+<input type="hidden" name="next" value="{{ next|default:"/" }}">
<dl>
<dt><label for="id_username">Username:</label>{% if form.username.errors %} <span class="error">{{ form.username.errors|join:", " }}</span>{% endif %}</dt>
<dd>{{ form.username }}</dd>
@@ -25,4 +27,4 @@
<p>If you don't have an account, you can <a href="/accounts/register/">sign
up</a> for one.</p>
<p>If you forgot your password, you can <a href="/accounts/password/reset/">reset it</a>.</p>
-{% endblock %}
+{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.