Link expiration time should be defined on globalvar.py

This commit is contained in:
Dita Aji Pratama 2025-01-20 13:47:00 +07:00
parent 42d9beffb1
commit 310d662a05

View File

@ -1,3 +1,5 @@
import datetime
title = "Authsquare" title = "Authsquare"
header = f"Welcome to {title}" header = f"Welcome to {title}"
copyright = "Copyright (C) 2024 Dita Aji Pratama" copyright = "Copyright (C) 2024 Dita Aji Pratama"
@ -32,6 +34,10 @@ smtpconfig = {
"from" : "user@domain.com" "from" : "user@domain.com"
} }
verification_link_expiration = datetime.datetime.now() + datetime.timedelta(minutes=30)
forgot_link_expiration = datetime.datetime.now() + datetime.timedelta(minutes=30)
# Can be hours or minutes
baseurl = "https://domain.com" baseurl = "https://domain.com"
if production == False: if production == False:
baseurl = "http://localhost:11000" baseurl = "http://localhost:11000"