diff options
author | Negar Fazeli <negar.fazeli@ericsson.com> | 2016-06-08 19:16:46 +0200 |
---|---|---|
committer | Negar Fazeli <negar.fazeli@ericsson.com> | 2016-06-08 23:22:39 +0200 |
commit | 6e7dc7c7dde377794c23d5db6f25ffacfb08e82a (patch) | |
tree | b9b44bf419d9e12595c5d93c82e96d44fa1ce21e /synapse/handlers/register.py | |
parent | Merge pull request #859 from matrix-org/erikj/public_room_performance (diff) | |
download | synapse-6e7dc7c7dde377794c23d5db6f25ffacfb08e82a.tar.xz |
Fix a bug caused by a change in auth_handler function
Fix the relevant unit test cases
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r-- | synapse/handlers/register.py | 4 |
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( |