Add csrf tokens as required
authorMagnus Hagander <magnus@hagander.net>
Tue, 8 Nov 2011 14:04:27 +0000 (15:04 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 8 Nov 2011 14:04:27 +0000 (15:04 +0100)
templates/account/password_change.html
templates/account/password_reset.html
templates/account/password_reset_confirm.html

index e876abfa97bd7aa4f4a2ad556e03cefdfb7ec6ab..f37b9aa472b42450c9494d04a5abed2f204168f6 100644 (file)
@@ -5,7 +5,7 @@
 From this form you can change the password of your community account.
 </p>
 
-<form action="." method="post" id="login-form">
+<form action="." method="post" id="login-form">{% csrf_token %}
   <div class="form-row">
     {{ form.old_password.errors }}
     <label for="id_old_password">Old password:</label>{{ form.old_password }}
index 0b09b684a223dd1b80363c20ea42393ca5ccb1cc..ea64ccb98c3ea75152acc28309eb7c6d2eb41700 100644 (file)
@@ -7,7 +7,7 @@ If you've forgotten your password, you can enter your email address in the field
 and we'll email you instructions for setting a new one.
 </p>
 
-<form action="" method="post">
+<form action="" method="post">{% csrf_token %}
   <div class="form-row">
 {{ form.email.errors }}
    <label for="id_email">E-mail address</label> {{ form.email }} <input type="submit" value="Reset my password" />
index 62e47c55f0f52d17c15cf18f3a8cfb65ea18a23c..5afdb3baaa0706db70f5991ce6662abecb724ac4 100644 (file)
@@ -7,7 +7,7 @@
 
 <p>Please enter your new password twice so we can verify you typed it in correctly.</p>
 
-<form action="" method="post">
+<form action="" method="post">{% csrf_token %}
   <div class="form-row">
    {{ form.new_password1.errors }}
    <label for="id_new_password1">New password:</label>{{ form.new_password1 }}