captcha schema

This commit is contained in:
Miodec 2023-06-29 14:20:55 +02:00
parent d4c9fb4874
commit df3e1d7df4

View file

@ -45,7 +45,10 @@ router.post(
.string()
.regex(/^[\w+]+$/)
.required(),
captcha: joi.string().required(),
captcha: joi
.string()
.regex(/[\w-_]+/)
.required(),
},
validationErrorMessage: "Please fill all the fields",
}),