* Resolve #3537

* tune
This commit is contained in:
MeiMei
2018-12-08 06:18:37 +09:00
committed by syuilo
parent 702875a78e
commit e2843a5ce4
2 changed files with 12 additions and 3 deletions

View File

@ -44,10 +44,18 @@ export default Vue.extend({
return;
}
this.$root.api('i/change_password', {
currentPasword: currentPassword,
newPassword: newPassword
currentPassword,
newPassword
}).then(() => {
this.$notify(this.$t('changed'));
this.$root.dialog({
type: 'success',
text: this.$t('changed')
});
}).catch(() => {
this.$root.dialog({
type: 'error',
text: this.$t('failed')
});
});
}
}