Skip to content

Commit

Permalink
Save password after succes change
Browse files Browse the repository at this point in the history
  • Loading branch information
smalishevskiy authored and mxlgv committed Mar 26, 2024
1 parent 06496b9 commit 8e2a459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion main/src/ui/manage_accounts/change_password_dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ namespace Dino.Ui{
string ret = yield stream_interactor.get_module(Register.IDENTITY).change_password(account, new_pw_input);
change_password_button.sensitive = true;
change_password_stack.visible_child_name = "label";
if (ret == null)
if (ret == null) {
account.password = new_pw_input;
close();
}

change_password_error_label.label = ret;

Expand Down
2 changes: 1 addition & 1 deletion xmpp-vala/src/module/xep/0077_in_band_registration.vala
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class Module : XmppStreamNegotiationModule {
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, "change1") { to=jid.bare_jid.domain_jid };
Iq.Stanza set_password_iq = new Iq.Stanza.set(pw_change_node) { to=jid.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()) {
Expand Down

0 comments on commit 8e2a459

Please sign in to comment.