📅  最后修改于: 2022-03-11 15:03:29.203000             🧑  作者: Mango
const validationSchema = yup.object().shape({
newPassword: yup.string()
.required('New Password is required'),
confirmPassword: yup.string()
.required('Confirm Password is required')
.oneOf([yup.ref('password'), null], 'Passwords does not match'),
});