summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorNegar Fazeli <negar.fazeli@ericsson.com>2016-06-08 19:16:46 +0200
committerNegar Fazeli <negar.fazeli@ericsson.com>2016-06-08 23:22:39 +0200
commit6e7dc7c7dde377794c23d5db6f25ffacfb08e82a (patch)
treeb9b44bf419d9e12595c5d93c82e96d44fa1ce21e /synapse
parentMerge pull request #859 from matrix-org/erikj/public_room_performance (diff)
downloadsynapse-6e7dc7c7dde377794c23d5db6f25ffacfb08e82a.tar.xz
Fix a bug caused by a change in auth_handler function
Fix the relevant unit test cases
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/register.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index bbc07b045e..e0aaefe7be 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -388,8 +388,8 @@ class RegistrationHandler(BaseHandler):
 
         user = UserID(localpart, self.hs.hostname)
         user_id = user.to_string()
-        auth_handler = self.hs.get_handlers().auth_handler
-        token = auth_handler.generate_short_term_login_token(user_id, duration_seconds)
+        token = self.auth_handler().generate_short_term_login_token(
+            user_id, duration_seconds)
 
         if need_register:
             yield self.store.register(