|
|
@ -17,11 +17,15 @@ const userUpdateSchema = { |
|
|
|
body: { |
|
|
|
_id: Joi.string().required(), |
|
|
|
username: Joi.string().required(), |
|
|
|
email: Joi.any(), |
|
|
|
password: Joi.string().allow(''), |
|
|
|
newPassword: Joi.string().allow(''), |
|
|
|
__v: Joi.number().integer(), |
|
|
|
email: Joi.string().email(), |
|
|
|
registered: Joi.string(), |
|
|
|
lastLogin: Joi.string(), |
|
|
|
password: Joi.string().alphanum().allow(''), |
|
|
|
newPassword: Joi.string().alphanum().allow(''), |
|
|
|
} |
|
|
|
}; |
|
|
|
} |
|
|
|
; |
|
|
|
|
|
|
|
const athleteUpdateSchema = { |
|
|
|
body: { |
|
|
|