corrected the registration templates to suit new design
authorNishanth Amuluru <nishanth@fossee.in>
Sat, 08 Jan 2011 12:11:30 +0530
changeset 308 dca28aad6760
parent 307 c6bca38c1cbf
child 309 5eb99afe6350
corrected the registration templates to suit new design
pytask/templates/registration/logout.html
pytask/templates/registration/password_change_form.html
pytask/templates/registration/password_reset_confirm.html
pytask/templates/registration/password_reset_form.html
--- a/pytask/templates/registration/logout.html	Sat Jan 08 11:20:57 2011 +0530
+++ b/pytask/templates/registration/logout.html	Sat Jan 08 12:11:30 2011 +0530
@@ -2,5 +2,4 @@
 {% block content %}
 You have successfully logged out of PyTasks.
 <br><br>
-<a href="/">Click here</a> to go back to PyTask Homepage
 {% endblock %}
--- a/pytask/templates/registration/password_change_form.html	Sat Jan 08 11:20:57 2011 +0530
+++ b/pytask/templates/registration/password_change_form.html	Sat Jan 08 12:11:30 2011 +0530
@@ -12,7 +12,7 @@
 <p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
 
 <form action="" method="post">
-
+{% csrf_token %}
 {{ form.old_password.errors }}
 <p class="aligned wide"><label for="id_old_password">{% trans 'Old password:' %}</label>{{ form.old_password }}</p>
 {{ form.new_password1.errors }}
--- a/pytask/templates/registration/password_reset_confirm.html	Sat Jan 08 11:20:57 2011 +0530
+++ b/pytask/templates/registration/password_reset_confirm.html	Sat Jan 08 12:11:30 2011 +0530
@@ -14,6 +14,7 @@
 <p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
 
 <form action="" method="post">
+{% csrf_token %}
 {{ form.new_password1.errors }}
 <p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
 {{ form.new_password2.errors }}
--- a/pytask/templates/registration/password_reset_form.html	Sat Jan 08 11:20:57 2011 +0530
+++ b/pytask/templates/registration/password_reset_form.html	Sat Jan 08 12:11:30 2011 +0530
@@ -12,6 +12,7 @@
 <p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}</p>
 
 <form action="" method="post">
+{% csrf_token %}
 {{ form.email.errors }}
 <p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p>
 </form>