From a1fad2216f2c35efc4851b23b8fc2532c5a013bc Mon Sep 17 00:00:00 2001 From: Son NK Date: Wed, 18 Mar 2020 21:37:45 +0100 Subject: [PATCH] Improve error --- app/api/views/auth_login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/views/auth_login.py b/app/api/views/auth_login.py index 876047f9..422f376a 100644 --- a/app/api/views/auth_login.py +++ b/app/api/views/auth_login.py @@ -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)