Skip to content

Commit

Permalink
Upon 403 login attempt by unregistered user return Invalid Password
Browse files Browse the repository at this point in the history
  • Loading branch information
Danieloni1 committed May 15, 2022
1 parent 6b6dcdc commit 677c763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/handlers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ async def validate_login(
await self._failed_login_attempts_ratelimiter.can_do_action(
None, (medium, address)
)
raise LoginError(403, "", errcode=Codes.FORBIDDEN)
raise LoginError(403, "Invalid password", errcode=Codes.FORBIDDEN)

identifier_dict = {"type": "m.id.user", "user": user_id}

Expand Down

0 comments on commit 677c763

Please sign in to comment.