From 498cd005f23d5e7942a5b7aa40ed8e42c64883bc Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 21 Aug 2024 04:52:00 -0500 Subject: Provide email and improve UI text/notification. --- gn_auth/auth/authorisation/users/views.py | 3 ++- gn_auth/templates/users/forgot-password-token-send-success.html | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'gn_auth') diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py index ba74ab0..4cd498c 100644 --- a/gn_auth/auth/authorisation/users/views.py +++ b/gn_auth/auth/authorisation/users/views.py @@ -448,7 +448,8 @@ def forgot_password(): request.args["client_id"], request.args["redirect_uri"], request.args["response_type"]) - return render_template("users/forgot-password-token-send-success.html") + return render_template("users/forgot-password-token-send-success.html", + email=form["email"]) @users.route("/change-password/", methods=["GET", "POST"]) diff --git a/gn_auth/templates/users/forgot-password-token-send-success.html b/gn_auth/templates/users/forgot-password-token-send-success.html index ab8a741..8782e8c 100644 --- a/gn_auth/templates/users/forgot-password-token-send-success.html +++ b/gn_auth/templates/users/forgot-password-token-send-success.html @@ -11,9 +11,10 @@

Forgot Password

-

- We have sent an email to '{{email}}'. Please log in to your email and - click the URL to change your password. +

+ We have sent an email to '{{email}}'. Please use the link + in the email we sent to change your password.

-- cgit v1.2.3