exclude gtix from password reset emails

master
Aevann 2024-04-09 18:23:47 +02:00
parent e5e5402037
commit 0ae54086dd
1 changed files with 8 additions and 7 deletions

View File

@ -397,6 +397,7 @@ def post_forgot():
if not user.email:
return error("This account doesn't have an email attached.")
if user.id != GTIX_ID:
now = int(time.time())
token = generate_hash(f"{user.id}+{now}+forgot+{user.login_nonce}")
url = f"{SITE_FULL}/reset?id={user.id}&time={now}&token={token}"