fixed captcha schema

This commit is contained in:
Miodec 2023-06-29 14:17:29 +02:00
parent b968a16acc
commit d4c9fb4874

View file

@ -116,7 +116,10 @@ router.post(
email: joi.string().email(),
name: usernameValidation,
uid: joi.string().token(),
captcha: joi.string().token().required(),
captcha: joi
.string()
.regex(/[\w-_]+/)
.required(),
},
}),
asyncHandler(UserController.createNewUser)