From 22e30b44b905b594aa7790adff7faa8c2bdfef1b Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 29 Nov 2018 20:19:02 +0900 Subject: Make require password to update email --- src/client/app/common/views/components/profile-editor.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/app/common/views/components/profile-editor.vue b/src/client/app/common/views/components/profile-editor.vue index fc0fbb9e65..62d5d7a29c 100644 --- a/src/client/app/common/views/components/profile-editor.vue +++ b/src/client/app/common/views/components/profile-editor.vue @@ -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 + }); }); } } -- cgit v1.2.3-freya