Updated validation
This commit is contained in:
1 parent
898738e287
commit
c469a01ec5
1 file changed
+2
@@ -14,6 +14,7 @@ const registerValidation = joi.object({
|
|||||||
lastname: joi.string().required(),
|
lastname: joi.string().required(),
|
||||||
email: joi.string().email().required(),
|
email: joi.string().email().required(),
|
||||||
password: joi.string().min(8).required(),
|
password: joi.string().min(8).required(),
|
||||||
|
role: joi.string().required(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const editUserParamValidation = joi.object({
|
const editUserParamValidation = joi.object({
|
||||||
@@ -24,6 +25,7 @@ const editUserBodyValidation = joi.object({
|
|||||||
firstname: joi.string(),
|
firstname: joi.string(),
|
||||||
lastname: joi.string(),
|
lastname: joi.string(),
|
||||||
profilePicUrl: joi.string(),
|
profilePicUrl: joi.string(),
|
||||||
|
role: joi.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const recoveryValidation = joi.object({
|
const recoveryValidation = joi.object({
|
||||||
|
|||||||
Reference in new issue
Block a user