Skip to content
Snippets Groups Projects
Commit a73c7ff5 authored by Dichi13's avatar Dichi13
Browse files

changed response status when changing password to 401 if old password do not match

parent e55cf52f
Branches
1 merge request!5Develop
Pipeline #14462 failed with stage
...@@ -162,7 +162,7 @@ def change_password(user): ...@@ -162,7 +162,7 @@ def change_password(user):
}) })
else: else:
return jsonify({ return jsonify({
"status": 500, "status": 401,
"message": "Password do not match" "message": "Password do not match"
}) })
except Exception as e: except Exception as e:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment