Fix CSRF login and register bug

This commit is contained in:
Isaac Bythewood
2012-10-02 00:45:06 +00:00
parent fde97b05c6
commit 94d40b7054
2 changed files with 2 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
<div id="form" class="span6 offset3">
<h1>Login</h1>
<form action="{% url core:login %}" method="post" class="form-horizontal">
{% csrf_token %}
{% for field in form %}
{% bootstrap_field field %}
{% endfor %}

View File

@@ -11,6 +11,7 @@
<div id="form" class="span6 offset3">
<h1>Register</h1>
<form action="{% url core:register %}" method="post" class="form-horizontal">
{% csrf_token %}
{% for field in form %}
{% bootstrap_field field %}
{% endfor %}