summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pytask/templates/registration/logout.html1
-rw-r--r--pytask/templates/registration/password_change_form.html2
-rw-r--r--pytask/templates/registration/password_reset_confirm.html1
-rw-r--r--pytask/templates/registration/password_reset_form.html1
4 files changed, 3 insertions, 2 deletions
diff --git a/pytask/templates/registration/logout.html b/pytask/templates/registration/logout.html
index 480adfe..14bd29e 100644
--- a/pytask/templates/registration/logout.html
+++ b/pytask/templates/registration/logout.html
@@ -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 %}
diff --git a/pytask/templates/registration/password_change_form.html b/pytask/templates/registration/password_change_form.html
index 71f221c..fd4fd97 100644
--- a/pytask/templates/registration/password_change_form.html
+++ b/pytask/templates/registration/password_change_form.html
@@ -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 }}
diff --git a/pytask/templates/registration/password_reset_confirm.html b/pytask/templates/registration/password_reset_confirm.html
index b581a7f..02417ed 100644
--- a/pytask/templates/registration/password_reset_confirm.html
+++ b/pytask/templates/registration/password_reset_confirm.html
@@ -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 }}
diff --git a/pytask/templates/registration/password_reset_form.html b/pytask/templates/registration/password_reset_form.html
index 38eec4c..365056a 100644
--- a/pytask/templates/registration/password_reset_form.html
+++ b/pytask/templates/registration/password_reset_form.html
@@ -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>