Answers for "error message for password validation in yup"

3

yup password validation

import * as Yup from 'yup';

validationSchema: Yup.object({
  password: Yup.string().required('Password is required'),
  passwordConfirmation: Yup.string()
     .oneOf([Yup.ref('password'), null], 'Passwords must match')
});
Posted by: Guest on January-15-2020

Code answers related to "error message for password validation in yup"

Browse Popular Code Answers by Language