diff options
author | David Baker <dave@matrix.org> | 2015-04-29 15:45:44 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-04-29 15:45:44 +0100 |
commit | 109c8aafd2dadaa0cad6c6e8374ab568a513f335 (patch) | |
tree | 1fae2ee5eccfac0e04007f32227690d6008b61b3 | |
parent | Accept both camelcase and underscore threepid creds for transition (diff) | |
download | synapse-109c8aafd2dadaa0cad6c6e8374ab568a513f335.tar.xz |
Fix includes
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/identity.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py index a3025bc0db..cbb3184ca5 100644 --- a/synapse/handlers/identity.py +++ b/synapse/handlers/identity.py @@ -22,6 +22,7 @@ from synapse.api.errors import ( from ._base import BaseHandler from synapse.http.client import SimpleHttpClient from synapse.util.async import run_on_reactor +from synapse.api.errors import SynapseError import json import logging @@ -59,7 +60,7 @@ class IdentityHandler(BaseHandler): else: raise SynapseError(400, "No client_secret in creds") - if not id_server in trustedIdServers: + if id_server not in trustedIdServers: logger.warn('%s is not a trusted ID server: rejecting 3pid ' + 'credentials', id_server) defer.returnValue(None) |