Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

password confirmation using Joi

password: Joi.string().min(3).max(15).required().label('Password'),
password_confirmation: Joi.any().equal(Joi.ref('password'))
    .required()
    .label('Confirm password')
    .options({ messages: { 'any.only': '{{#label}} does not match'} })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #password #confirmation #Joi
ADD COMMENT
Topic
Name
5+5 =