fix: refs #6432 account sync fixes

This commit is contained in:
Juan Ferrer 2023-11-17 00:08:29 +01:00
parent 14eb14ad3f
commit c2e295f777
1 changed files with 4 additions and 4 deletions

View File

@ -122,10 +122,10 @@ class Controller extends Descriptor {
}
onSync() {
let params = {
password: this.syncPassword,
force: true
};
const params = {force: true};
if (this.shouldSyncPassword)
params.password = this.syncPassword;
return this.$http.patch(`Accounts/${this.user.name}/sync`, params)
.then(() => this.vnApp.showSuccess(this.$t('User synchronized!')));
}