From 97363a7c94e6fd5098119c5d6b1fd34fdf82b161 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 8 Aug 2024 09:55:00 -0500 Subject: Bug: Prevent fall-through to verification if code is expired. --- gn_auth/auth/authorisation/users/views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gn_auth/auth/authorisation') 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) -- cgit v1.2.3