diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_change.html b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_change.html index 3dcd6c19..9855c0f5 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_change.html +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_change.html @@ -9,8 +9,8 @@

{% trans "Change Password" %}

- -
+ + {% csrf_token %} {{ form|crispy }} diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_delete.html b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_delete.html index 6a110c1f..80ef8e5f 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_delete.html +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_delete.html @@ -7,9 +7,9 @@ {% block content %}

{% trans "Delete Password" %}

{% blocktrans %}You may delete your password since you are currently logged in using OpenID.{% endblocktrans %}

- + {% csrf_token %}
{% endblock %} -{% endraw %} \ No newline at end of file +{% endraw %} diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_reset.html b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_reset.html index 6231aac0..8c3d8281 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_reset.html +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_reset.html @@ -15,18 +15,18 @@ {% if user.is_authenticated %} {% include "account/snippets/already_logged_in.html" %} {% endif %} - +

{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}

- -
+ + {% csrf_token %} {{ form|crispy }}
- +

{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}

-
+ {% endblock %} @@ -35,4 +35,4 @@ $("#id_email").focus(); {% endblock %} -{% endraw %} \ No newline at end of file +{% endraw %} diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_reset_from_key.html b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_reset_from_key.html index c4f6ff5a..603c25de 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_reset_from_key.html +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_reset_from_key.html @@ -11,13 +11,13 @@

{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}

- + {% if token_fail %} {% url 'account_reset_password' as passwd_reset_url %}

{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktrans %}

{% else %} {% if form %} -
+ {% csrf_token %} {{ form|crispy }} @@ -27,7 +27,7 @@ {% endif %} {% endif %}
-
+ {% endblock %} {% endraw %} diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_set.html b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_set.html index 60f31045..7e2967e3 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_set.html +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/templates/account/password_set.html @@ -10,8 +10,8 @@

{% trans "Set Password" %}

- - + + {% csrf_token %} {{ form|crispy }} @@ -20,4 +20,4 @@
{% endblock %} -{% endraw %} \ No newline at end of file +{% endraw %}