Add csrf token to registration forms

This commit is contained in:
wookey
2013-07-02 17:26:35 +01:00
parent 9435be0f19
commit f3a570a21d
3 changed files with 16 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ registration_form.html | {{ block.super }}
{% endblock %}
{% block content %}
<form action="{% url registration_register %}" method="POST">
<form action="{% url registration_register %}" method="POST">{% csrf_token %}
{% for error in form.non_field_errors %}
<span style="color:red">{{ error }}</span>
{% endfor %}