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
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user