diff --git a/server/cshr/views/auth.py b/server/cshr/views/auth.py index 20f74daa..bc01630a 100644 --- a/server/cshr/views/auth.py +++ b/server/cshr/views/auth.py @@ -88,8 +88,8 @@ def put(self, request: Request) -> Response: request.user.password = new_password request.user.save() return CustomResponse.success(message="Success updated password") - return CustomResponse.unauthorized() + return CustomResponse.unauthorized(message="Incorrect password. Please ensure that the password provided is accurate.") return CustomResponse.bad_request( - message="Incorrect password. Please ensure that the password provided is accurate.", + message="Please make sure that you entered a valid data.", error=serializer.errors, )