Add success alert and page reload after password change
This commit is contained in:
parent
9a84311d5b
commit
cb82ef96fa
|
@ -46,6 +46,10 @@ async function handleSubmit({
|
||||||
currentPassword,
|
currentPassword,
|
||||||
newPassword
|
newPassword
|
||||||
})
|
})
|
||||||
|
|
||||||
|
alert('Senha alterada com sucesso!')
|
||||||
|
|
||||||
|
location.reload()
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user