You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: