Add invitation link expiration and invitation url on globalvar.py
This commit is contained in:
parent
e4fdbd81b0
commit
2185df8eec
@ -24,7 +24,7 @@ reCAPTCHA = {
|
|||||||
|
|
||||||
verification_link_expiration = datetime.datetime.now() + datetime.timedelta(minutes=30)
|
verification_link_expiration = datetime.datetime.now() + datetime.timedelta(minutes=30)
|
||||||
forgot_link_expiration = datetime.datetime.now() + datetime.timedelta(minutes=30)
|
forgot_link_expiration = datetime.datetime.now() + datetime.timedelta(minutes=30)
|
||||||
# Can be hours or minutes
|
invitation_link_expiration = datetime.datetime.now() + datetime.timedelta(hours=48)
|
||||||
|
|
||||||
baseurl = "https://domain.com"
|
baseurl = "https://domain.com"
|
||||||
if production == False:
|
if production == False:
|
||||||
@ -46,3 +46,7 @@ def change_forgot_url(token):
|
|||||||
url = f"{baseurl}/reset?token={token}"
|
url = f"{baseurl}/reset?token={token}"
|
||||||
return url
|
return url
|
||||||
|
|
||||||
|
def invitation_url(token):
|
||||||
|
url = f"{baseurl}/accept?token={token}"
|
||||||
|
return url
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user