Skip to content

Commit

Permalink
fail password change on authentication failure
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed May 9, 2024
1 parent 3fa5e7a commit 66d9326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seacatauth/credentials/change_password/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async def change_password(self, request, *, json_data):
"cid": credentials_id, "from_ip": from_ip})
await self.LastActivityService.update_last_activity(
EventCode.PASSWORD_CHANGE_FAILED, credentials_id=credentials_id, from_ip=from_ip)
return asab.web.rest.json_response(request, status=401, data={"result": "FAILED"})

# Change the password
try:
Expand Down

0 comments on commit 66d9326

Please sign in to comment.