Improve error

This commit is contained in:
Son NK 2020-03-18 21:37:45 +01:00 committed by Son NK
parent 7d61c5d8c2
commit f8f501b84d

View file

@ -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)