diff options
author | David Baker <dave@matrix.org> | 2015-03-26 13:40:16 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-03-26 13:40:16 +0000 |
commit | a32e876ef43df22cec37aad748c32c0cda30428a (patch) | |
tree | 1da17d10ffe6e24fa1537b0ce9e191d60abe4592 /synapse/handlers | |
parent | pep8 blank lines (diff) | |
download | synapse-a32e876ef43df22cec37aad748c32c0cda30428a.tar.xz |
Delete pushers when changing password
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/login.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/login.py b/synapse/handlers/login.py index 7aff2e69e6..04f6dbb95e 100644 --- a/synapse/handlers/login.py +++ b/synapse/handlers/login.py @@ -70,4 +70,7 @@ class LoginHandler(BaseHandler): yield self.store.user_set_password_hash(user_id, password_hash) yield self.store.user_delete_access_tokens_apart_from(user_id, token_id) + yield self.hs.get_pusherpool().remove_pushers_by_user_access_token( + user_id, token_id + ) yield self.store.flush_user(user_id) |