Add success alert and page reload after password change

This commit is contained in:
Douglas Barone 2023-12-19 08:20:15 -04:00
parent 9a84311d5b
commit cb82ef96fa

View File

@ -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)