diff --git a/cookbook/templates/account/password_reset_from_key.html b/cookbook/templates/account/password_reset_from_key.html new file mode 100644 index 000000000..efbe6e131 --- /dev/null +++ b/cookbook/templates/account/password_reset_from_key.html @@ -0,0 +1,42 @@ +{% extends "base.html" %} +{% load crispy_forms_filters %} + +{% load i18n %} +{% load account %} + +{% block head_title %}{% trans "Change Password" %}{% endblock %} + +{% block content %} + +
+
+

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

+ {% if user.is_authenticated %} + {% include "account/snippets/already_logged_in.html" %} + {% 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 }} + +
+ {% else %} +

{% trans 'Your password is now changed.' %}

+ {% endif %} + {% endif %} +
+
+{% endblock %} + diff --git a/cookbook/templates/account/password_reset_from_key_done.html b/cookbook/templates/account/password_reset_from_key_done.html new file mode 100644 index 000000000..cde2cb7b5 --- /dev/null +++ b/cookbook/templates/account/password_reset_from_key_done.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} + + +{% load i18n %} +{% load account %} + +{% block title %}{% trans "Change Password" %}{% endblock %} + +{% block content %} +
+
+
+

{% trans "Change Password" %}

+ + {% if user.is_authenticated %} + {% include "account/snippets/already_logged_in.html" %} + {% endif %} + +

{% trans 'Your password is now changed.' %}

+
+
+{% endblock %} \ No newline at end of file