From ec94c64dbcfff474e78db9ee940c9e314e392659 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 8 Jan 2024 22:50:36 +0000 Subject: [PATCH] Handle errors on password change --- snikket_web/prosodyclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snikket_web/prosodyclient.py b/snikket_web/prosodyclient.py index 70c40d5..0f17f01 100644 --- a/snikket_web/prosodyclient.py +++ b/snikket_web/prosodyclient.py @@ -908,7 +908,7 @@ class ProsodyClient: self.session_address, current_password, ) - await self._xml_iq_call( + password_changed = await self._xml_iq_call( session, xmpputil.make_password_change_request( self.session_address, @@ -919,7 +919,7 @@ class ProsodyClient: }, sensitive=True, ) - # TODO: error handling + xmpputil.extract_iq_reply(password_changed) # TODO: obtain a new token using the new password to allow the # server to expire/revoke all tokens on password change. self._store_token_in_session(token_info)