diff options
author | David Baker <dbkr@matrix.org> | 2014-11-20 13:53:34 +0000 |
---|---|---|
committer | David Baker <dbkr@matrix.org> | 2014-11-20 13:53:34 +0000 |
commit | dc60eee50e0a16ec24d10398c82f6fb64eec9ccc (patch) | |
tree | 00dcfae0a19aee5a8752d8f29959213f220682d7 /synapse/handlers/login.py | |
parent | CaptchaServerHttpClient should extend the base, not matrix http client. (diff) | |
download | synapse-dc60eee50e0a16ec24d10398c82f6fb64eec9ccc.tar.xz |
Refactor the HTTP clients a little.
Diffstat (limited to 'synapse/handlers/login.py')
-rw-r--r-- | synapse/handlers/login.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/login.py b/synapse/handlers/login.py index 99d15261d4..1204dc3b8f 100644 --- a/synapse/handlers/login.py +++ b/synapse/handlers/login.py @@ -17,7 +17,7 @@ from twisted.internet import defer from ._base import BaseHandler from synapse.api.errors import LoginError, Codes -from synapse.http.client import IdentityServerHttpClient +from synapse.http.client import SimpleHttpClient from synapse.util.emailutils import EmailException import synapse.util.emailutils as emailutils @@ -97,7 +97,7 @@ class LoginHandler(BaseHandler): @defer.inlineCallbacks def _query_email(self, email): - httpCli = IdentityServerHttpClient(self.hs) + httpCli = SimpleHttpClient(self.hs) data = yield httpCli.get_json( 'matrix.org:8090', # TODO FIXME This should be configurable. "/_matrix/identity/api/v1/lookup?medium=email&address=" + |