Answers for "new password and confirm password compare in yup"

0

Yup password confirm password

Yup.object({
  password: Yup.string().required('Password is required'),
  passwordConfirmation: Yup.string()
    .test('passwords-match', 'Passwords must match', function(value){
      return this.parent.password === value
    })
})
Posted by: Guest on April-18-2021

Code answers related to "new password and confirm password compare in yup"

Code answers related to "Javascript"

Browse Popular Code Answers by Language