From ea43f23649b8ae30df26d910c764e778369acf63 Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Sun, 8 Feb 2026 22:06:34 +0000 Subject: [PATCH 1/2] added password_reset and password_reset_done templates --- templates/account/password_reset.html | 20 ++++++++++++++++++++ templates/account/password_reset_done.html | 11 +++++++++++ 2 files changed, 31 insertions(+) create mode 100644 templates/account/password_reset.html create mode 100644 templates/account/password_reset_done.html diff --git a/templates/account/password_reset.html b/templates/account/password_reset.html new file mode 100644 index 000000000..b5b33a6b0 --- /dev/null +++ b/templates/account/password_reset.html @@ -0,0 +1,20 @@ +{% extends "account/base.html" %} +{% load i18n account %} + +{% block page_title %}{% trans "Password Reset" %}{% endblock page_title %} + +{% block content %} +

{% trans "Password Reset" %}

+ +

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

+ +
+ {% csrf_token %} + {{ form.as_p }} + {% if redirect_field_value %} + + {% endif %} + +
+ +{% endblock content %} diff --git a/templates/account/password_reset_done.html b/templates/account/password_reset_done.html new file mode 100644 index 000000000..00eac2f07 --- /dev/null +++ b/templates/account/password_reset_done.html @@ -0,0 +1,11 @@ +{% extends "account/base.html" %} +{% load i18n %} + +{% block page_title %}{% trans "Password Reset" %}{% endblock page_title %} + +{% block content %} +

{% trans "Password Reset" %}

+ +

{% trans "We have sent you an email. Please contact us if you do not receive it within a few minutes." %}

+ +{% endblock content %} From ab291c52e270f8b6ecc18109a274f0271ac55a54 Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Mon, 21 Sep 2026 10:44:39 +0100 Subject: [PATCH 2/2] added password_reset_from_key and password_reset_from_key_done files --- .../account/password_reset_from_key.html | 31 +++++++++++++++++++ .../account/password_reset_from_key_done.html | 11 +++++++ 2 files changed, 42 insertions(+) create mode 100644 templates/account/password_reset_from_key.html create mode 100644 templates/account/password_reset_from_key_done.html diff --git a/templates/account/password_reset_from_key.html b/templates/account/password_reset_from_key.html new file mode 100644 index 000000000..db4111a5b --- /dev/null +++ b/templates/account/password_reset_from_key.html @@ -0,0 +1,31 @@ +{% extends "account/base.html" %} +{% load i18n %} + +{% block page_title %}{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}{% endblock page_title %} + +{% block content %} +

{% 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 %} +
+ {% csrf_token %} + {{ form.as_p }} + {% if redirect_field_value %} + + {% endif %} + +
+ {% endif %} + + {% if not cancel_url %} +
+ + {% csrf_token %} +
+ {% endif %} +{% endblock content %} diff --git a/templates/account/password_reset_from_key_done.html b/templates/account/password_reset_from_key_done.html new file mode 100644 index 000000000..cab765135 --- /dev/null +++ b/templates/account/password_reset_from_key_done.html @@ -0,0 +1,11 @@ +{% extends "account/base.html" %} +{% load i18n %} + +{% block page_title %}{% trans "Change Password" %}{% endblock page_title %} + +{% block content %} +

{% trans "Change Password" %}

+

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

+

Sign In

+{% endblock content %} +