aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-08 09:52:55 -0500
committerFrederick Muriuki Muriithi2024-08-08 09:52:55 -0500
commit62273d5438ce8b8a7b1810b170b01f1db3c78515 (patch)
tree407359d132d89ba19dc60e68e5fa95b11e147866
parent2fe7a65b74992c311f6fdfa2aaf2aed888213171 (diff)
downloadgn-auth-62273d5438ce8b8a7b1810b170b01f1db3c78515.tar.gz
Forward email to email verification page.
-rw-r--r--gn_auth/auth/authentication/oauth2/views.py3
-rw-r--r--gn_auth/auth/authorisation/users/views.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/gn_auth/auth/authentication/oauth2/views.py b/gn_auth/auth/authentication/oauth2/views.py
index efaae56..ca1cf5a 100644
--- a/gn_auth/auth/authentication/oauth2/views.py
+++ b/gn_auth/auth/authentication/oauth2/views.py
@@ -74,7 +74,8 @@ def authorise():
url_for("oauth2.users.handle_unverified",
response_type=form["response_type"],
client_id=client_id,
- redirect_uri=form["redirect_uri"]),
+ redirect_uri=form["redirect_uri"],
+ email=email["email"]),
code=307)
return server.create_authorization_response(request=request, grant_user=user)
flash(email_passwd_msg, "alert-danger")
diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py
index 4530522..86db014 100644
--- a/gn_auth/auth/authorisation/users/views.py
+++ b/gn_auth/auth/authorisation/users/views.py
@@ -315,7 +315,7 @@ def handle_unverified():
# or pass the client_id here?
return render_template(
"users/unverified-user.html",
- email=form.get("user:email"),
+ email=request.args["email"],
response_type=request.args["response_type"],
client_id=request.args["client_id"],
redirect_uri=request.args["redirect_uri"])