mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-23 06:39:25 +00:00
Add CSRF protection to all templates
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<form method="post" action=".">
|
||||
<table>
|
||||
{{ form }}
|
||||
{% csrf_token %}
|
||||
</table>
|
||||
<br />
|
||||
<input type="submit" value="{% trans "Create Account" %}" />
|
||||
|
||||
Reference in New Issue
Block a user