aboutsummaryrefslogtreecommitdiff
path: root/gn_auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-08 09:55:00 -0500
committerFrederick Muriuki Muriithi2024-08-08 09:55:00 -0500
commit97363a7c94e6fd5098119c5d6b1fd34fdf82b161 (patch)
tree18f24492c210eaf98fe1280973b987953a72c464 /gn_auth
parent342a2d005cc31290f5bdef88f01521833e70caa5 (diff)
downloadgn-auth-97363a7c94e6fd5098119c5d6b1fd34fdf82b161.tar.gz
Bug: Prevent fall-through to verification if code is expired.
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/auth/authorisation/users/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py
index 86db014..eb1870f 100644
--- a/gn_auth/auth/authorisation/users/views.py
+++ b/gn_auth/auth/authorisation/users/views.py
@@ -240,6 +240,7 @@ def verify_user():
delete_verification_code(cursor, verificationcode)
flash("Invalid verification code: code has expired.",
"alert-danger")
+ return loginuri
# Code is good!
delete_verification_code(cursor, verificationcode)