fds
This commit is contained in:
parent
66bf401cf3
commit
35dddec8f9
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue