summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorChristoph Witzany <christoph@web.crofting.com>2016-04-06 17:48:36 +0200
committerChristoph Witzany <christoph@web.crofting.com>2016-04-06 18:23:46 +0200
commit875ed05bdcfdee72452a3eab196e3935a79e4004 (patch)
treead6bf68de4bb0f0c1156e29e79ada0329230aeb4 /synapse
parentfix exception handling (diff)
downloadsynapse-875ed05bdcfdee72452a3eab196e3935a79e4004.tar.xz
fix pep8
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/auth.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 0e6b7c9e26..ee2b285cc1 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -358,7 +358,6 @@ class AuthHandler(BaseHandler):
             logger.warn("Failed password login for user %s", user_id)
             raise LoginError(403, "", errcode=Codes.FORBIDDEN)
 
-
         logger.info("Logging in user %s", user_id)
         access_token = yield self.issue_access_token(user_id)
         refresh_token = yield self.issue_refresh_token(user_id)
@@ -466,8 +465,8 @@ class AuthHandler(BaseHandler):
             l.simple_bind_s(dn.encode('utf-8'), password.encode('utf-8'))
 
             if not (yield self.does_user_exist(user_id)):
+                handler = self.hs.get_handlers().registration_handler
                 user_id, access_token = (
-                    handler = self.hs.get_handlers().registration_handler
                     yield handler.register(localpart=local_name)
                 )