summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2016-06-09 11:40:12 +0100
committerErik Johnston <erikj@jki.re>2016-06-09 11:40:12 +0100
commit0a43219a277283de47150ded67c7fabb94674f33 (patch)
tree28c95500b5cbdba3f27500dde3f42ef6ca3418c3 /synapse
parentMerge pull request #861 from matrix-org/erikj/events_log (diff)
parentFix a bug caused by a change in auth_handler function (diff)
downloadsynapse-0a43219a277283de47150ded67c7fabb94674f33.tar.xz
Merge pull request #860 from negzi/bug_fix_get_or_create_user
Fix a bug caused by a change in auth_handler function
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(