Add CSRF protection to all templates

This commit is contained in:
2010-11-05 17:02:00 +00:00
parent 3505ed5d96
commit ab29b9653d
16 changed files with 16 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
<tr><td>{{ form.password.label_tag }}</td><td>{{ form.password }}</td></tr>
</table>
<br />
{% csrf_token %}
<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

View File

@@ -11,6 +11,7 @@
<form method="post" action=".">
<table>
{{ form }}
{% csrf_token %}
</table>
<br />
<input type="submit" value="{% trans "Create Account" %}" />