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 }) }); },