mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 17:46:20 +03:00
truncate displayname at @, too
This commit is contained in:
parent
9655538913
commit
6354a27126
1 changed files with 6 additions and 0 deletions
|
@ -134,6 +134,12 @@ class SamlHandler:
|
|||
|
||||
displayName = saml2_auth.ava.get("displayName", [None])[0]
|
||||
|
||||
# mozilla-specific hack: truncate at @
|
||||
if displayName:
|
||||
pos = displayName.find("@")
|
||||
if pos >= 0:
|
||||
displayName = displayName[:pos]
|
||||
|
||||
with (await self._mapping_lock.queue(self._auth_provider_id)):
|
||||
# first of all, check if we already have a mapping for this user
|
||||
logger.info(
|
||||
|
|
Loading…
Reference in a new issue