Updated register page and validation to new role schema
This commit is contained in:
1 parent
59f5c05b3e
commit
3b7f1b876f
4 files changed
+68
-6
No files matched your search
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user