diff options
author | Frederick Muriuki Muriithi | 2024-08-21 04:52:00 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-21 04:52:00 -0500 |
commit | 498cd005f23d5e7942a5b7aa40ed8e42c64883bc (patch) | |
tree | 2bc5aaec5dbcc0baaf930a21a44c7921ec8f82ba | |
parent | df2b0262f2678f642729ed1e5066744246b53b19 (diff) | |
download | gn-auth-498cd005f23d5e7942a5b7aa40ed8e42c64883bc.tar.gz |
Provide email and improve UI text/notification.
-rw-r--r-- | gn_auth/auth/authorisation/users/views.py | 3 | ||||
-rw-r--r-- | gn_auth/templates/users/forgot-password-token-send-success.html | 7 |
2 files changed, 6 insertions, 4 deletions
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/<forgot_password_token>", 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 @@ <div class="row"><h1>Forgot Password</h1></div> <div class="row"> - <p> - We have sent an email to '{{email}}'. Please log in to your email and - click the URL to change your password. + <p class="text-info" + style="font-size:1.5em;text-align:center;margin-top:2em;"> + We have sent an email to '<strong>{{email}}</strong>'. Please use the link + in the email we sent to change your password. </p> </div> |