Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 56fcf78808e13364875751e1a8fc0918da5f8725 1 parent 370a6ff
Baptiste Mispelon authored May 21, 2013

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  templates/registration/login.html
6  templates/registration/login.html
@@ -10,7 +10,9 @@
10 10
 <p class="error">Please correct the errors below:</p>
11 11
 {% endif %}
12 12
 
13  
-<form method="post" action="?next={{ next|default:"/" }}">{% csrf_token %}
  13
+<form method="post" action="">
  14
+{% csrf_token %}
  15
+<input type="hidden" name="next" value="{{ next|default:"/" }}">
14 16
 <dl>
15 17
 <dt><label for="id_username">Username:</label>{% if form.username.errors %} <span class="error">{{ form.username.errors|join:", " }}</span>{% endif %}</dt>
16 18
 <dd>{{ form.username }}</dd>
@@ -25,4 +27,4 @@
25 27
 <p>If you don't have an account, you can <a href="/accounts/register/">sign
26 28
 up</a> for one.</p>
27 29
 <p>If you forgot your password, you can <a href="/accounts/password/reset/">reset it</a>.</p>
28  
-{% endblock %}
  30
+{% endblock %}

0 notes on commit 56fcf78

Please sign in to comment.
Something went wrong with that request. Please try again.