Adjusting hcaptcha http parameter name
Jenkins Production Deployment

This commit is contained in:
Paddy committed 2022-01-09 21:53:24 +01:00
1 parent 9aebd12d16
commit ac8de54d95
4 files changed
+8 -8

No files matched your search

@@ -108,7 +108,7 @@ climbingGymRouter.get('/', async (req: Request, res: Response) => {
* type: string
* example: Karlsruhe
* - in: query
* name: h-captcha-response
* name: hcaptcha_response
* required: true
* description: The hCaptcha response key
* schema:
@@ -119,7 +119,7 @@ climbingGymRouter.post('/', async (req: Request, res: Response) => {
try {
let name = req.query.name as string;
let city = req.query.city as string;
let captcha_token = req.query['h-captcha-response'] as string;
let captcha_token = req.query['hcaptcha_response'] as string;
if (!name || !city || !captcha_token) {
res.status(400).send({'message': 'Missing parameters'});