diff options
| author | Marvin W <git@larma.de> | 2026-07-27 14:22:54 +0200 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2026-08-02 12:44:10 +0200 |
| commit | 84a47eee3b5cf4a73ad7d14a292f8b23b944a592 (patch) | |
| tree | 53b33e6a3cf2ee5444eefa92b61bc791646b272e /xmpp-vala/src | |
| parent | e8077ee3e9409aea9cda3d04b6363d49bcaa61b9 (diff) | |
Always prefer resource from current stream
Diffstat (limited to 'xmpp-vala/src')
| -rw-r--r-- | xmpp-vala/src/module/xep/0077_in_band_registration.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmpp-vala/src/module/xep/0077_in_band_registration.vala b/xmpp-vala/src/module/xep/0077_in_band_registration.vala index 87b654a8..12ed2f1c 100644 --- a/xmpp-vala/src/module/xep/0077_in_band_registration.vala +++ b/xmpp-vala/src/module/xep/0077_in_band_registration.vala @@ -30,15 +30,15 @@ public class Module : XmppStreamNegotiationModule { return null; } - public async ErrorStanza? change_password(XmppStream stream, Jid jid, string new_pw) { + public async ErrorStanza? change_password(XmppStream stream, Jid bare_jid, string new_pw) { StanzaNode pw_change_node = new StanzaNode.build("query", NS_URI).add_self_xmlns(); StanzaNode username_node = new StanzaNode.build("username", NS_URI); StanzaNode pw_node = new StanzaNode.build("password", NS_URI); - username_node.put_node(new StanzaNode.text(jid.localpart)); + username_node.put_node(new StanzaNode.text(bare_jid.localpart)); pw_node.put_node(new StanzaNode.text(new_pw)); pw_change_node.put_node(username_node); pw_change_node.put_node(pw_node); - Iq.Stanza set_password_iq = new Iq.Stanza.set(pw_change_node) { to=jid.bare_jid.domain_jid }; + Iq.Stanza set_password_iq = new Iq.Stanza.set(pw_change_node) { to=bare_jid.domain_jid }; Iq.Stanza chpw_result = yield stream.get_module(Iq.Module.IDENTITY).send_iq_async(stream, set_password_iq); if (chpw_result.is_error()) { |
