summaryrefslogtreecommitdiff
path: root/src/client/pages
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-07-28 14:45:56 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-07-28 14:45:56 +0900
commit1bec25e8e67094b5e8c9511717576b1938fba12b (patch)
tree802f96c828474fd9c80a8de5725ff1449851c7a7 /src/client/pages
parent:art: (diff)
downloadmisskey-1bec25e8e67094b5e8c9511717576b1938fba12b.tar.gz
misskey-1bec25e8e67094b5e8c9511717576b1938fba12b.tar.bz2
misskey-1bec25e8e67094b5e8c9511717576b1938fba12b.zip
パスワードリセットしても新しいパスワードが表示されない問題を修正
Diffstat (limited to 'src/client/pages')
-rw-r--r--src/client/pages/user-info.vue12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/pages/user-info.vue b/src/client/pages/user-info.vue
index 51bd5016bb..503982652b 100644
--- a/src/client/pages/user-info.vue
+++ b/src/client/pages/user-info.vue
@@ -167,13 +167,13 @@ export default defineComponent({
},
async resetPassword() {
- os.apiWithDialog('admin/reset-password', {
+ const { password } = await os.api('admin/reset-password', {
userId: this.user.id,
- }, undefined, ({ password }) => {
- os.dialog({
- type: 'success',
- text: this.$t('newPasswordIs', { password })
- });
+ });
+
+ os.dialog({
+ type: 'success',
+ text: this.$t('newPasswordIs', { password })
});
},