aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/service/registration.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdino/src/service/registration.vala b/libdino/src/service/registration.vala
index 4255f322..8a8e75b1 100644
--- a/libdino/src/service/registration.vala
+++ b/libdino/src/service/registration.vala
@@ -71,6 +71,12 @@ public class Register : StreamInteractionModule, Object{
return ret;
}
+ public async string? change_password(Account account, string new_pw){
+ XmppStream stream = stream_interactor.get_stream(account);
+ if (stream == null) return null;
+ return (yield stream.get_module(Xep.InBandRegistration.Module.IDENTITY).change_password(stream, account.full_jid, new_pw)).condition;
+ }
+
public class ServerAvailabilityReturn {
public bool available { get; set; }
public TlsCertificateFlags? error_flags { get; set; }