mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 04:15:03 -04:00
Fix a bug caused by a change in auth_handler function
Fix the relevant unit test cases
This commit is contained in:
parent
b7fbc9bd95
commit
6e7dc7c7dd
2 changed files with 5 additions and 8 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue