Closed albertcito closed 3 years ago
I'm getting this error when I write in the current password input, and the others are empty.
current password
This is my schema:
const schema = Yup.object().shape({ old_password: Yup.string().required(), password: Yup.string().min(8) .minLowercase(1) .minUppercase(1) .minNumber(1) .required(), password_confirmation: Yup.string().oneOf([ Yup.ref('password')], 'Passwords must match'), });
thank you for reporting this. I've pushed out a new version. undefined values will now be considered valid and can be caught by using required().
undefined
required()
I'm getting this error when I write in the
current password
input, and the others are empty.This is my schema: