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:
@@ -91,7 +91,7 @@ def index():
|
||||
def verify_email(token):
|
||||
s = URLSafeTimedSerializer(current_app.config['SECRET_KEY'])
|
||||
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:
|
||||
return render_template("error.html", error_message="Token expired. Please register again.")
|
||||
except BadSignature:
|
||||
|
||||
Reference in New Issue
Block a user