diff --git a/app.py b/app.py index 998ecb2..10b7c79 100644 --- a/app.py +++ b/app.py @@ -120,7 +120,7 @@ def register(): # Check if the submitted token matches the one in the session if submitted_token != session.get('unique_token'): # Token mismatch, handle accordingly - return "Token Expired", 400 + return render_template('expired.html'), 400 # Generate a new unique token for the next request session['unique_token'] = str(uuid.uuid4()) diff --git a/templates/captcha_err.html b/templates/captcha_err.html index f74ea38..84f8fb3 100644 --- a/templates/captcha_err.html +++ b/templates/captcha_err.html @@ -13,7 +13,7 @@