mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 08:43:07 +08:00
captcha schema
This commit is contained in:
parent
d4c9fb4874
commit
df3e1d7df4
1 changed files with 4 additions and 1 deletions
|
@ -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",
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue