mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
パスワードリセットしても新しいパスワードが表示されない問題を修正
This commit is contained in:
parent
6a6137f057
commit
b0dd905420
1 changed files with 6 additions and 6 deletions
|
@ -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 })
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue