-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
featureNew functionality or improvementNew functionality or improvement
Milestone
Description
I want to stick "Passwords don't match" message to verifyPassword field.
First attempt:
verifyPassword: Joi.any().valid(Joi.ref('password')).options({language: {any: {allowOnly: "Passwords don't match"}}}) Failed. Result is "verifyPassword Passwords don't match". Joi prefixes message with label and it seems there is no way to turn it off.
Second attempt:
verifyPassword: Joi.any().valid(Joi.ref('password')).options({language: {any: {allowOnly: "Passwords don't match"}}}).label('')Failed. "smart" check inside Joi prohibits empty labels...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew functionality or improvementNew functionality or improvement