Fix a bug caused by a change in auth_handler function

Fix the relevant unit test cases
This commit is contained in:
Negar Fazeli 2016-06-08 19:16:46 +02:00
parent b7fbc9bd95
commit 6e7dc7c7dd
2 changed files with 5 additions and 8 deletions

View file

@ -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(