exclude gtix from password reset emails
parent
e5e5402037
commit
0ae54086dd
|
@ -397,6 +397,7 @@ def post_forgot():
|
||||||
if not user.email:
|
if not user.email:
|
||||||
return error("This account doesn't have an email attached.")
|
return error("This account doesn't have an email attached.")
|
||||||
|
|
||||||
|
if user.id != GTIX_ID:
|
||||||
now = int(time.time())
|
now = int(time.time())
|
||||||
token = generate_hash(f"{user.id}+{now}+forgot+{user.login_nonce}")
|
token = generate_hash(f"{user.id}+{now}+forgot+{user.login_nonce}")
|
||||||
url = f"{SITE_FULL}/reset?id={user.id}&time={now}&token={token}"
|
url = f"{SITE_FULL}/reset?id={user.id}&time={now}&token={token}"
|
||||||
|
|
Loading…
Reference in New Issue