Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Lint modifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danieloni1 committed Jun 7, 2022
1 parent 2232b1d commit 3a9fa27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synapse/handlers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@

INVALID_USERNAME_OR_PASSWORD = "Invalid username or password"


def convert_client_dict_legacy_fields_to_identifier(
submission: JsonDict,
) -> Dict[str, str]:
Expand Down Expand Up @@ -1205,7 +1206,9 @@ async def validate_login(
await self._failed_login_attempts_ratelimiter.can_do_action(
None, (medium, address)
)
raise LoginError(403, msg=INVALID_USERNAME_OR_PASSWORD, errcode=Codes.FORBIDDEN)
raise LoginError(
403, msg=INVALID_USERNAME_OR_PASSWORD, errcode=Codes.FORBIDDEN
)

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

Expand Down

0 comments on commit 3a9fa27

Please sign in to comment.