fix: refs #6432 account sync fixes
This commit is contained in:
parent
14eb14ad3f
commit
c2e295f777
|
@ -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!')));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue