Skip to content

Commit

Permalink
Edit error msg in change pass API
Browse files Browse the repository at this point in the history
  • Loading branch information
zaelgohary committed Feb 1, 2024
1 parent c0f6884 commit 26dbc67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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="You don't have permission to perform this action."
message="Incorrect old password. Please ensure that the password provided is accurate."
)
return CustomResponse.success(
data=serializer.custom_token(data=serializer.data),
Expand Down

0 comments on commit 26dbc67

Please sign in to comment.