Answers for "new password different current yup"

3

how to do password confirm in Yup

passwordConfirm: Yup.string()
+               .label('Password Confirm')
+               .required()
+               .oneOf([Yup.ref('password')], 'Passwords does not match'),
Posted by: Guest on August-10-2020

Browse Popular Code Answers by Language