diff options
author | Erik Johnston <erik@matrix.org> | 2017-02-02 10:53:36 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-02-02 10:53:36 +0000 |
commit | 51adaac953c00ee59101a71de6162cde4a0e0a86 (patch) | |
tree | 2c303e7eda397feec27f93fe6a5e678c03e0b0e5 /synapse/rest/client/v1 | |
parent | Merge pull request #1872 from matrix-org/erikj/key_changes (diff) | |
download | synapse-51adaac953c00ee59101a71de6162cde4a0e0a86.tar.xz |
Fix email push in pusher worker
This was broken when device list updates were implemented, as Mailer could no longer instantiate an AuthHandler due to a dependency on federation sending.
Diffstat (limited to 'synapse/rest/client/v1')
-rw-r--r-- | synapse/rest/client/v1/login.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/login.py b/synapse/rest/client/v1/login.py index 0c9cdff3b8..72057f1b0c 100644 --- a/synapse/rest/client/v1/login.py +++ b/synapse/rest/client/v1/login.py @@ -330,6 +330,7 @@ class CasTicketServlet(ClientV1RestServlet): self.cas_required_attributes = hs.config.cas_required_attributes self.auth_handler = hs.get_auth_handler() self.handlers = hs.get_handlers() + self.macaroon_gen = hs.get_macaroon_generator() @defer.inlineCallbacks def on_GET(self, request): @@ -368,7 +369,9 @@ class CasTicketServlet(ClientV1RestServlet): yield self.handlers.registration_handler.register(localpart=user) ) - login_token = auth_handler.generate_short_term_login_token(registered_user_id) + login_token = self.macaroon_gen.generate_short_term_login_token( + registered_user_id + ) redirect_url = self.add_login_token_to_redirect_url(client_redirect_url, login_token) request.redirect(redirect_url) |