diff options
author | Wookey <wookey@wookware.org> | 2013-07-02 18:10:45 +0100 |
---|---|---|
committer | Wookey <wookey@wookware.org> | 2013-07-02 18:10:45 +0100 |
commit | ed13cca2613be9aa5b708ead5efb6f9c9075f93c (patch) | |
tree | eedde220772fc9332acfdd360b5f665b2672c1f5 /templates | |
parent | ca1a1dfb973f3dc7c522dfa39bd84ecba6d8b344 (diff) | |
download | troggle-ed13cca2613be9aa5b708ead5efb6f9c9075f93c.tar.gz troggle-ed13cca2613be9aa5b708ead5efb6f9c9075f93c.tar.bz2 troggle-ed13cca2613be9aa5b708ead5efb6f9c9075f93c.zip |
Add CSRF protection to registration form (and remove annoying second
password)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/registration/registration_form.html | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html index 5720a8b..f82c6cb 100644 --- a/templates/registration/registration_form.html +++ b/templates/registration/registration_form.html @@ -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 %} @@ -42,15 +42,6 @@ registration_form.html | {{ block.super }} </td> </tr> <tr> - <td align="right" valign="top">Password (again):</td> - <td> - {{ form.password2 }} <br/> - {% for error in form.password2.errors %} - <span style="color:red">{{ error }}</span> - {% endfor %} - </td> -</tr> -<tr> <td> </td> <td><input type="submit" value="Register" /></td> </tr> |