diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-29 20:19:02 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-29 20:19:02 +0900 |
| commit | 22e30b44b905b594aa7790adff7faa8c2bdfef1b (patch) | |
| tree | 361eacabff3f587eca67351ed146416f038fc306 /src/client | |
| parent | [MFM] Improve hashtag detection (diff) | |
| download | misskey-22e30b44b905b594aa7790adff7faa8c2bdfef1b.tar.gz misskey-22e30b44b905b594aa7790adff7faa8c2bdfef1b.tar.bz2 misskey-22e30b44b905b594aa7790adff7faa8c2bdfef1b.zip | |
Make require password to update email
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/views/components/profile-editor.vue | 10 |
1 files changed, 8 insertions, 2 deletions
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 + }); }); } } |