[FWA-3] fix cannot hash password

This commit is contained in:
2024-06-11 12:55:46 +00:00
parent 3fed0650c9
commit db091176da
3 changed files with 11 additions and 7 deletions

View File

@ -32,12 +32,9 @@ export default function Profile() {
const { formData } = formHandler
createEffect(() => {
formHandler.fillForm(
{
name: userInfo?.name,
},
{ silentValidation: false },
)
formHandler.fillForm({
name: userInfo?.name,
})
})
const submit = async (event) => {
@ -53,6 +50,8 @@ export default function Profile() {
if (resp.status === 200) {
setUser(resp.data)
formHandler.setFieldValue('password', '')
formHandler.setFieldValue('confirm-password', '')
notify.success({
title: 'Update profile success!',
description: 'Your profile has been updated!',