パスワードリセットしても新しいパスワードが表示されない問題を修正

This commit is contained in:
syuilo 2021-07-28 14:45:56 +09:00
parent 6a6137f057
commit b0dd905420

View file

@ -167,14 +167,14 @@ export default defineComponent({
}, },
async resetPassword() { async resetPassword() {
os.apiWithDialog('admin/reset-password', { const { password } = await os.api('admin/reset-password', {
userId: this.user.id, userId: this.user.id,
}, undefined, ({ password }) => { });
os.dialog({ os.dialog({
type: 'success', type: 'success',
text: this.$t('newPasswordIs', { password }) text: this.$t('newPasswordIs', { password })
}); });
});
}, },
async toggleSilence(v) { async toggleSilence(v) {