From 310d662a055e2ed6d7896546a7479c8d54b6d152 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Mon, 20 Jan 2025 13:47:00 +0700 Subject: [PATCH] Link expiration time should be defined on globalvar.py --- config/globalvar.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/globalvar.py b/config/globalvar.py index 9242919..af6bc14 100644 --- a/config/globalvar.py +++ b/config/globalvar.py @@ -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"