Make require password to update email

This commit is contained in:
syuilo
2018-11-29 20:19:02 +09:00
parent 48d0e2fa5f
commit 22e30b44b9
3 changed files with 21 additions and 2 deletions

View File

@ -218,8 +218,14 @@ export default Vue.extend({
},
updateEmail() {
this.$root.api('i/update_email', {
email: this.email == '' ? null : this.email
this.$input({
title: this.$t('@.enter-password'),
type: 'password'
}).then(password => {
this.$root.api('i/update_email', {
password: password,
email: this.email == '' ? null : this.email
});
});
}
}