fix: use ChangePasswordSchema
This commit is contained in:
parent
b65bd12c8a
commit
03b1d761f0
|
@ -295,7 +295,7 @@ const ChangePasswordForm = ({
|
|||
const { mutate: updatePassword } = useUpdatePassword<{ password: string }>();
|
||||
const [form, fields] = useForm({
|
||||
id: "login",
|
||||
constraint: getZodConstraint(ChangeEmailSchema),
|
||||
constraint: getZodConstraint(ChangePasswordSchema),
|
||||
onValidate({ formData }) {
|
||||
return parseWithZod(formData, { schema: ChangePasswordSchema });
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue