diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-03-27 09:31:26 +0000 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-03-27 09:31:26 +0000 |
commit | 0c3ed04bcd5360a8c6b9d6c6021103342804a7e6 (patch) | |
tree | cdc5838964a0639baad62e6f949174d3db5a034b /templates | |
parent | 1c73d633338542b654aa590127efcf91ab2c4c19 (diff) | |
download | openembedded-core-contrib-0c3ed04bcd5360a8c6b9d6c6021103342804a7e6.tar.gz |
Fix CSRF validation errors in password reset forms
Thanks to Michael Halstead <michael@yoctoproject.org> for this fix.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/registration/password_change_form.html | 1 | ||||
-rw-r--r-- | templates/registration/password_reset_confirm.html | 1 | ||||
-rw-r--r-- | templates/registration/password_reset_form.html | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html index 6e6358e271..d74f39e5fb 100644 --- a/templates/registration/password_change_form.html +++ b/templates/registration/password_change_form.html @@ -6,5 +6,6 @@ {{ form.as_p }} <input type="submit" class="btn" value="{% trans 'Submit' %}" /> + {% csrf_token %} </form> {% endblock %} diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html index aeda0bf7ea..09fc9c13bc 100644 --- a/templates/registration/password_reset_confirm.html +++ b/templates/registration/password_reset_confirm.html @@ -9,6 +9,7 @@ {{ form.as_p }} <input type="submit" class="btn" value="{% trans 'Submit' %}" /> + {% csrf_token %} </form> {% else %} diff --git a/templates/registration/password_reset_form.html b/templates/registration/password_reset_form.html index cb2f1d01cc..a380af3cd8 100644 --- a/templates/registration/password_reset_form.html +++ b/templates/registration/password_reset_form.html @@ -6,6 +6,7 @@ {{ form.as_p }} <input type="submit" class="btn" value="{% trans 'Submit' %}" /> + {% csrf_token %} </form> {% endblock %} |