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 0031a1f commit e55213a
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 @@ -75,6 +75,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 e55213a

Please sign in to comment.