1
0
Fork 0
mirror of synced 2024-10-02 01:56:57 +13:00

add force reset modal

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-21 12:08:31 +02:00
parent 7888578d91
commit f6f6949d9e

View file

@ -10,7 +10,11 @@
const password = Math.random().toString(36).substr(2, 20)
async function resetPassword() {
const res = await users.save({ ...user, password })
const res = await users.save({
...user,
password,
forceResetPassword: true,
})
if (res.status) {
notifications.error(res.message)
} else {