Delete pushers when changing password

This commit is contained in:
David Baker 2015-03-26 13:40:16 +00:00
parent df4c12c762
commit a32e876ef4
3 changed files with 31 additions and 37 deletions

View file

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