Skip to content

Commit

Permalink
Edit msg
Browse files Browse the repository at this point in the history
  • Loading branch information
zaelgohary committed Feb 1, 2024
1 parent e9cdf25 commit 78b7616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/cshr/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit 78b7616

Please sign in to comment.