Skip to content
Snippets Groups Projects
Commit a0626a25 authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

jamiaccount: save configuration on password change


Change-Id: I6c287483dcf80a723be6619545351cece9361b52
Reviewed-by: default avatarSébastien Blin <sebastien.blin@savoirfairelinux.com>
parent 6b3642d2
No related branches found
No related tags found
No related merge requests found
...@@ -330,7 +330,10 @@ bool ...@@ -330,7 +330,10 @@ bool
changeAccountPassword(const std::string& accountID, const std::string& password_old, const std::string& password_new) changeAccountPassword(const std::string& accountID, const std::string& password_old, const std::string& password_new)
{ {
if (auto acc = jami::Manager::instance().getAccount<jami::JamiAccount>(accountID)) if (auto acc = jami::Manager::instance().getAccount<jami::JamiAccount>(accountID))
return acc->changeArchivePassword(password_old, password_new); if (acc->changeArchivePassword(password_old, password_new)) {
jami::Manager::instance().saveConfig(acc);
return true;
}
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment