forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2023-09-27 01:25:27 +03:00
parent 620cb49ddd
commit fb5a77b415
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ def post_forgot():
email = escape_for_search(email)
if user and user.email.lower() == email.lower():
if user and user.email and user.email.lower() == email.lower():
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}"