1
0

Unbind using bind_new_user_emails_to_sydent if specified (#98)

This commit is contained in:
Mathieu Velten
2021-05-21 17:27:09 +02:00
committed by GitHub
parent a5575ea3cf
commit b2932910c3

View File

@@ -251,6 +251,8 @@ class IdentityHandler(BaseHandler):
"""
if threepid.get("id_server"):
id_servers = [threepid["id_server"]]
elif self.hs.config.bind_new_user_emails_to_sydent:
id_servers = [self.hs.config.bind_new_user_emails_to_sydent]
else:
id_servers = await self.store.get_id_servers_user_bound(
user_id=mxid, medium=threepid["medium"], address=threepid["address"]