Update person_validator.js

This commit is contained in:
xfarrow 2024-03-06 17:24:50 +01:00
parent e8d52f1acb
commit cc5dad330d
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const registerValidator = [
}),
check('password').isLength({
min: 5
}).trim().escape().withMessage('Password must be at leat 5 characters long'),
}).trim().escape().withMessage('Password must be at least 5 characters'),
check('date_of_birth').optional().isDate().withMessage('Invalid date format. Date must be YYYY-MM-DD'),
check('available').optional().isBoolean(),
check('place_of_living').isLength({