mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 07:59:25 -05:00
fix thinko on 3pid whitelisting
This commit is contained in:
parent
25e2456ee7
commit
9a72b70630
@ -368,8 +368,8 @@ class RegisterRestServlet(RestServlet):
|
|||||||
if auth_result:
|
if auth_result:
|
||||||
for login_type in [LoginType.EMAIL_IDENTITY, LoginType.MSISDN]:
|
for login_type in [LoginType.EMAIL_IDENTITY, LoginType.MSISDN]:
|
||||||
if login_type in auth_result:
|
if login_type in auth_result:
|
||||||
medium = auth_result[login_type].threepid['medium']
|
medium = auth_result[login_type]['medium']
|
||||||
address = auth_result[login_type].threepid['address']
|
address = auth_result[login_type]['address']
|
||||||
|
|
||||||
if not check_3pid_allowed(self.hs, medium, address):
|
if not check_3pid_allowed(self.hs, medium, address):
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
|
Loading…
Reference in New Issue
Block a user