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