Add invitation link expiration and invitation url on globalvar.py

This commit is contained in:
Dita Aji Pratama 2025-08-07 10:02:12 +07:00
parent e4fdbd81b0
commit 2185df8eec

View File

@ -24,7 +24,7 @@ reCAPTCHA = {
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
invitation_link_expiration = datetime.datetime.now() + datetime.timedelta(hours=48)
baseurl = "https://domain.com"
if production == False:
@ -46,3 +46,7 @@ def change_forgot_url(token):
url = f"{baseurl}/reset?token={token}"
return url
def invitation_url(token):
url = f"{baseurl}/accept?token={token}"
return url