updated max age of verify token since confirmed users do not get new links and have to reuse old ones

This commit is contained in:
2026-01-18 11:18:58 +01:00
parent 8f63f8a7ef
commit 6d9f96efd9

View File

@@ -91,7 +91,7 @@ def index():
def verify_email(token): def verify_email(token):
s = URLSafeTimedSerializer(current_app.config['SECRET_KEY']) s = URLSafeTimedSerializer(current_app.config['SECRET_KEY'])
try: try:
email = s.loads(token, salt='email-confirm-h4tum-ctf-2025', max_age=28800) email = s.loads(token, salt='email-confirm-h4tum-ctf-2025', max_age=1209600)
except SignatureExpired: except SignatureExpired:
return render_template("error.html", error_message="Token expired. Please register again.") return render_template("error.html", error_message="Token expired. Please register again.")
except BadSignature: except BadSignature: