From 047fc704f773a6e0edfd1a99beb37373c96f8e8f Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Fri, 19 Oct 2018 16:16:30 +1300 Subject: [PATCH] Add some text to the password reset email What we had before was a little bit terse, so add some reasonable text. Also mention in the confirmation page that sending an email is predicated on there actually being an account matching the specified email address (and we deliberately don't specify whether there is or not, in order to prevent user enumeration). Signed-off-by: Paul Eggleton --- templates/registration/password_reset_done.html | 2 +- templates/registration/password_reset_email.txt | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html index b8ef93c..760397d 100644 --- a/templates/registration/password_reset_done.html +++ b/templates/registration/password_reset_done.html @@ -2,5 +2,5 @@ {% load i18n %} {% block content %} -

{% trans "An email with password reset instructions has been sent." %}

+

{% trans "If an account exists with the specified email address, an email with password reset instructions has been sent." %}

{% endblock %} diff --git a/templates/registration/password_reset_email.txt b/templates/registration/password_reset_email.txt index 6b7358c..e31abee 100644 --- a/templates/registration/password_reset_email.txt +++ b/templates/registration/password_reset_email.txt @@ -1,5 +1,10 @@ {% load i18n %} -{% blocktrans %}Reset password at {{ site_name }}{% endblocktrans %}: +{% blocktrans %}Someone, possibly you, requested to reset the password for your account at {{ site_name }}. + +If you did request to reset your password, please click on the following link to do so:{% endblocktrans %} + {% block reset_link %} {{ protocol }}://{{ domain }}{% url "auth_password_reset_confirm" uidb64=uid token=token %} {% endblock %} + +{% blocktrans %}If you did not make this request then please ignore this message.{% endblocktrans %}