Open AnimalInstinct opened 4 years ago
Hi "joi-browser": "^13.4.0", "react": "^16.12.0",
trying to add validation to my registration form, got a problem with password confirmation. Valid and joi.ref doesnt works. I have tried different combinations from many different manuals, but no luck, it doesnt works.
password: Joi.string() .required() .min(8) .label("Password"), password_confirmation: Joi.any() .required() .valid(Joi.ref("password")) .options({ language: { any: { allowOnly: "!!Passwords do not match" } } })
I have checked via state, inputs are equal, but validator still count it as unequal.
sir If resolved? if resolved please provide solution
I am also facing same issue.
Hi "joi-browser": "^13.4.0", "react": "^16.12.0",
trying to add validation to my registration form, got a problem with password confirmation. Valid and joi.ref doesnt works. I have tried different combinations from many different manuals, but no luck, it doesnt works.
password: Joi.string() .required() .min(8) .label("Password"), password_confirmation: Joi.any() .required() .valid(Joi.ref("password")) .options({ language: { any: { allowOnly: "!!Passwords do not match" } } })
I have checked via state, inputs are equal, but validator still count it as unequal.