Skip to content

Commit

Permalink
revert last commit, Update msg in change password
Browse files Browse the repository at this point in the history
  • Loading branch information
zaelgohary committed Feb 1, 2024
1 parent 26dbc67 commit e9cdf25
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 @@ -52,7 +52,7 @@ def post(self, request: Request) -> Response:
user = get_user_by_email(user_email)
if not user.is_active:
return CustomResponse.unauthorized(
message="Incorrect old password. Please ensure that the password provided is accurate."
message="You don't have permission to perform this action."
)
return CustomResponse.success(
data=serializer.custom_token(data=serializer.data),
Expand Down Expand Up @@ -90,6 +90,6 @@ def put(self, request: Request) -> Response:
return CustomResponse.success(message="Success updated password")
return CustomResponse.unauthorized()
return CustomResponse.bad_request(
message="Please make sure that you entered a valid data",
message="Incorrect password. Please ensure that the password provided is accurate.",
error=serializer.errors,
)

0 comments on commit e9cdf25

Please sign in to comment.