Updated register page and validation to new role schema

This commit is contained in:
Alex Holliday
2024-07-23 11:25:25 -07:00
parent 59f5c05b3e
commit 3b7f1b876f
4 changed files with 68 additions and 6 deletions
+1 -3
View File
@@ -68,9 +68,7 @@ const credentials = joi.object({
}
return value;
}),
role: joi.string().messages({
"string.empty": "Role is required",
}),
role: joi.array().required(),
});
const monitorValidation = joi.object({