2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-14 07:18:45 +00:00

Add csrf token to registration forms

This commit is contained in:
wookey
2013-07-02 17:26:35 +01:00
parent 97c7a2fd87
commit 0dfbd1c84f
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 %}