diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-09-10 15:57:32 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-09-10 17:56:10 +0100 |
commit | 60d3c57bd0c977cbe6b7585a2c1517cc4e2c16dd (patch) | |
tree | cb383410ea384a21f5a993389c82166d971b5fa8 /synapse/rest/client/v2_alpha | |
parent | Merge pull request #5993 from matrix-org/anoa/worker_store_reg (diff) | |
download | synapse-60d3c57bd0c977cbe6b7585a2c1517cc4e2c16dd.tar.xz |
Use account_threepid_delegate for 3pid validation
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r-- | synapse/rest/client/v2_alpha/account.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py index 785d01ea52..94a8fec8f7 100644 --- a/synapse/rest/client/v2_alpha/account.py +++ b/synapse/rest/client/v2_alpha/account.py @@ -523,7 +523,8 @@ class ThreepidRestServlet(RestServlet): requester = yield self.auth.get_user_by_req(request) user_id = requester.user.to_string() - threepid = yield self.identity_handler.threepid_from_creds(threepid_creds) + # Retrieve the identity server from the request + threepid = yield self.identity_handler.threepid_from_creds(None, threepid_creds) if not threepid: raise SynapseError(400, "Failed to auth 3pid", Codes.THREEPID_AUTH_FAILED) |