mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
Improve error
This commit is contained in:
parent
7d61c5d8c2
commit
f8f501b84d
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ def forgot_password():
|
|||
user = User.get_by(email=email)
|
||||
|
||||
if not user:
|
||||
return jsonify(error="Error"), 400
|
||||
return jsonify(error="Email not found"), 400
|
||||
|
||||
send_reset_password_email(user)
|
||||
|
||||
|
|
Loading…
Reference in a new issue