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

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
OmmyZhang committed Sep 21, 2020
1 parent 2606ed8 commit 8f05f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/handlers/oidc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ async def _map_userinfo_to_user(
if users:
if self._allow_existing_users:
if len(users) == 1:
registered_user_id = next(iter(users))
registered_user_id = UserID.from_string(next(iter(users)))
elif user_id in users:
registered_user_id = user_id
else:
Expand Down

0 comments on commit 8f05f01

Please sign in to comment.