Created the authentication validation

This commit is contained in:
2022-12-27 15:07:08 +01:00
parent c6388cf942
commit e857edb697

View File

@ -0,0 +1,6 @@
const Joi = require('joi');
module.exports.authValidation = Joi.object({
username: Joi.string().min(5).max(25).required(),
password: Joi.string().min(6).required()
});