add csrf_token to login form

This commit is contained in:
Sanj 2012-09-20 05:27:02 +05:30
parent d6df3b8567
commit 5612a120f6

View File

@ -1,5 +1,6 @@
<div id="loginWrapper"> <div id="loginWrapper">
<form action="" method="POST"> <form action="" method="POST">
{% csrf_token %}
{{ form.as_ul }}<br /> {{ form.as_ul }}<br />
<input type="submit" value="Submit" /> <input type="submit" value="Submit" />
</form> </form>