mirror of
https://github.com/sasjs/server.git
synced 2026-01-03 21:10:05 +00:00
feat(web): added profile + edit + autoexec changes
This commit is contained in:
@@ -36,7 +36,7 @@ export const registerUserValidation = (data: any): Joi.ValidationResult =>
|
||||
password: passwordSchema.required(),
|
||||
isAdmin: Joi.boolean(),
|
||||
isActive: Joi.boolean(),
|
||||
autoExec: Joi.string()
|
||||
autoExec: Joi.string().allow('')
|
||||
}).validate(data)
|
||||
|
||||
export const deleteUserValidation = (
|
||||
@@ -59,7 +59,7 @@ export const updateUserValidation = (
|
||||
displayName: Joi.string().min(6),
|
||||
username: usernameSchema,
|
||||
password: passwordSchema,
|
||||
autoExec: Joi.string()
|
||||
autoExec: Joi.string().allow('')
|
||||
}
|
||||
if (isAdmin) {
|
||||
validationChecks.isAdmin = Joi.boolean()
|
||||
|
||||
Reference in New Issue
Block a user