aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-21 04:52:00 -0500
committerFrederick Muriuki Muriithi2024-08-21 04:52:00 -0500
commit498cd005f23d5e7942a5b7aa40ed8e42c64883bc (patch)
tree2bc5aaec5dbcc0baaf930a21a44c7921ec8f82ba
parentdf2b0262f2678f642729ed1e5066744246b53b19 (diff)
downloadgn-auth-498cd005f23d5e7942a5b7aa40ed8e42c64883bc.tar.gz
Provide email and improve UI text/notification.
-rw-r--r--gn_auth/auth/authorisation/users/views.py3
-rw-r--r--gn_auth/templates/users/forgot-password-token-send-success.html7
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>