Improve error
This commit is contained in:
parent
2079b16431
commit
a1fad2216f
|
@ -340,7 +340,7 @@ def forgot_password():
|
||||||
user = User.get_by(email=email)
|
user = User.get_by(email=email)
|
||||||
|
|
||||||
if not user:
|
if not user:
|
||||||
return jsonify(error="Error"), 400
|
return jsonify(error="Email not found"), 400
|
||||||
|
|
||||||
send_reset_password_email(user)
|
send_reset_password_email(user)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue