Compare commits

..

No commits in common. "3e85e6375f8cb57bced21ced6646faf9b32abdc0" and "e4fdbd81b040dcad52b35ce4f9c8c85b2f573e73" have entirely different histories.

2 changed files with 2 additions and 11 deletions

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)
invitation_link_expiration = datetime.datetime.now() + datetime.timedelta(hours=48)
# Can be hours or minutes
baseurl = "https://domain.com"
if production == False:
@ -46,11 +46,3 @@ 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
allowed_invitation = [
{ roles: 1, allowed: [1,2] },
{ roles: 2, allowed: [2] },
]

View File

@ -54,10 +54,9 @@ class auth:
auth_profile_lastrowid = self.cursor.lastrowid
self.cursor.execute("INSERT INTO `auth_profile_verification` VALUES (DEFAULT, %s, 'email', 0);", (auth_profile_lastrowid,) )
self.cursor.execute("INSERT INTO `auth_profile_roles` VALUES (DEFAULT, %s, %s);", (auth_profile_lastrowid, result_roles['id']) )
loggorilla.prcss(APIADDR, "Set expired datetime")
loggorilla.prcss(APIADDR, "Generate URL")
expired = globalvar.verification_link_expiration
expired_isoformat = expired.isoformat()
loggorilla.prcss(APIADDR, "Generate URL")
payload = {
"token" : token,
"expired": expired_isoformat