From a73c7ff568d3fe6f3ae0741ef44b89eab25f39e9 Mon Sep 17 00:00:00 2001 From: Dichi13 <diciganteng01@icloud.com> Date: Sun, 28 Apr 2019 15:40:36 +0700 Subject: [PATCH] changed response status when changing password to 401 if old password do not match --- modules/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/user.py b/modules/user.py index 9f96218..57f342c 100644 --- a/modules/user.py +++ b/modules/user.py @@ -162,7 +162,7 @@ def change_password(user): }) else: return jsonify({ - "status": 500, + "status": 401, "message": "Password do not match" }) except Exception as e: -- GitLab