From 0c3ed04bcd5360a8c6b9d6c6021103342804a7e6 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 27 Mar 2013 09:31:26 +0000 Subject: Fix CSRF validation errors in password reset forms Thanks to Michael Halstead for this fix. Signed-off-by: Paul Eggleton --- templates/registration/password_change_form.html | 1 + templates/registration/password_reset_confirm.html | 1 + templates/registration/password_reset_form.html | 1 + 3 files changed, 3 insertions(+) (limited to 'templates/registration') 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 }} + {% csrf_token %} {% 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 }} + {% csrf_token %} {% 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 }} + {% csrf_token %} {% endblock %} -- cgit 1.2.3-korg