3 files changed
+5
-11
No files matched your search
@@ -127,7 +127,8 @@ climbingGymRouter.post('/', async (req: Request, res: Response) => {
|
||||
}
|
||||
|
||||
// Verify captcha
|
||||
if (!await verifyCaptcha(captcha_token)) {
|
||||
let success = await verifyCaptcha(captcha_token);
|
||||
if (!success) {
|
||||
res.status(403).send({'message': 'Invalid Captcha. Please try again.'});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user