Link expiration time should be defined on globalvar.py
This commit is contained in:
parent
42d9beffb1
commit
310d662a05
@ -1,3 +1,5 @@
|
||||
import datetime
|
||||
|
||||
title = "Authsquare"
|
||||
header = f"Welcome to {title}"
|
||||
copyright = "Copyright (C) 2024 Dita Aji Pratama"
|
||||
@ -32,6 +34,10 @@ smtpconfig = {
|
||||
"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"
|
||||
if production == False:
|
||||
baseurl = "http://localhost:11000"
|
||||
|
Loading…
Reference in New Issue
Block a user