forked from MarseyWorld/MarseyWorld
fds
parent
da3cb04dc8
commit
7275a0b8c4
|
@ -396,6 +396,8 @@ def get_reset():
|
||||||
|
|
||||||
user = g.db.query(User).filter_by(id=user_id).one_or_none()
|
user = g.db.query(User).filter_by(id=user_id).one_or_none()
|
||||||
|
|
||||||
|
if not user: abort(400)
|
||||||
|
|
||||||
if not validate_hash(f"{user_id}+{timestamp}+forgot+{user.login_nonce}", token):
|
if not validate_hash(f"{user_id}+{timestamp}+forgot+{user.login_nonce}", token):
|
||||||
abort(400)
|
abort(400)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue