Make deleting other access tokens when you change your password actually work

This commit is contained in:
David Baker 2015-03-24 15:33:48 +00:00
parent 78adccfaf4
commit d19e79ecc9
2 changed files with 15 additions and 6 deletions

View file

@ -65,12 +65,15 @@ class PasswordRestServlet(RestServlet):
raise SynapseError(400, "", Codes.MISSING_PARAM)
new_password = body['new_password']
self.login_handler.set_password(
yield self.login_handler.set_password(
user_id, new_password, client.token_id
)
defer.returnValue((200, {}))
def on_OPTIONS(self, _):
return 200, {}
def register_servlets(hs, http_server):
PasswordRestServlet(hs).register(http_server)