mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 08:43:07 +08:00
stricter validation
This commit is contained in:
parent
21eeae095e
commit
ca38437153
1 changed files with 5 additions and 5 deletions
|
@ -110,8 +110,8 @@ router.post(
|
|||
body: {
|
||||
email: joi.string().email(),
|
||||
name: usernameValidation,
|
||||
uid: joi.string(),
|
||||
captcha: joi.string().required(),
|
||||
uid: joi.string().token(),
|
||||
captcha: joi.string().token().required(),
|
||||
},
|
||||
}),
|
||||
asyncHandler(UserController.createNewUser)
|
||||
|
@ -382,9 +382,9 @@ router.post(
|
|||
RateLimit.userDiscordLink,
|
||||
validateRequest({
|
||||
body: {
|
||||
tokenType: joi.string().required(),
|
||||
accessToken: joi.string().required(),
|
||||
state: joi.string().length(20).required(),
|
||||
tokenType: joi.string().token().required(),
|
||||
accessToken: joi.string().token().required(),
|
||||
state: joi.string().length(20).token().required(),
|
||||
},
|
||||
}),
|
||||
asyncHandler(UserController.linkDiscord)
|
||||
|
|
Loading…
Reference in a new issue