Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation for password confirmation does not work #2206

Open
motisaa opened this issue Apr 23, 2024 · 2 comments
Open

Validation for password confirmation does not work #2206

motisaa opened this issue Apr 23, 2024 · 2 comments

Comments

@motisaa
Copy link

motisaa commented Apr 23, 2024

Describe the bug
This is the code I have for Confirmpassword validation:
confirmPassword: yup.string() .oneOf([yup.ref('password')], 'Passwords should match.')

But when I only type password and don't type anything in confirmPassword field,(Empty confirmPassword). I don't get the error of "Passwords should match"

Expected behavior
I should get error of Password should match

Platform (please complete the following information):

  • Browser chrome
  • Version 123.0.6312.124
@motisaa motisaa changed the title ConfirmPassword validation does not work validation for password confirmation does not work Apr 23, 2024
@motisaa motisaa changed the title validation for password confirmation does not work Validation for password confirmation does not work Apr 23, 2024
@doubleyooz
Copy link

got the same error. I have no idea what is it

@jquense
Copy link
Owner

jquense commented May 8, 2024

Gotta provide a Repro i can look at, that doesn't include other libraries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants