mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-20 14:34:08 -04:00
Make DomainSpecificString an attrs class (#9875)
This commit is contained in:
parent
ceaa76970f
commit
a15c003e5b
4 changed files with 24 additions and 8 deletions
|
@ -957,6 +957,11 @@ class OidcProvider:
|
|||
# and attempt to match it.
|
||||
attributes = await oidc_response_to_user_attributes(failures=0)
|
||||
|
||||
if attributes.localpart is None:
|
||||
# If no localpart is returned then we will generate one, so
|
||||
# there is no need to search for existing users.
|
||||
return None
|
||||
|
||||
user_id = UserID(attributes.localpart, self._server_name).to_string()
|
||||
users = await self._store.get_users_by_id_case_insensitive(user_id)
|
||||
if users:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue