Updated register page and validation to new role schema

This commit is contained in:
Alex Holliday committed 2024-07-23 11:25:25 -07:00
1 parent 59f5c05b3e
commit 3b7f1b876f
4 files changed
+68 -6

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ const registerValidation = joi.object({
/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*()])[A-Za-z0-9!@#$%^&*()]+$/
),
profileImage: joi.any(),
role: joi.string().required(),
role: joi.array().required(),
});
const editUserParamValidation = joi.object({