From e89e84ab7e3532028815cdf543968c8267838c4e Mon Sep 17 00:00:00 2001 From: Marcus Perryman Date: Fri, 20 Dec 2024 10:42:54 +0000 Subject: [PATCH] HACK2 for Captcha (#190) * HACK - remove broken Captcha * Hack to remove validation --- aws-lambdas/AppForm/index.mjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aws-lambdas/AppForm/index.mjs b/aws-lambdas/AppForm/index.mjs index 34cd13bc..a133ef6b 100644 --- a/aws-lambdas/AppForm/index.mjs +++ b/aws-lambdas/AppForm/index.mjs @@ -26,11 +26,11 @@ export const handler = async (event) => { const formData = JSON.parse(event.body); const refererError = RequestValidator.validateReferer(event.headers, process.env['ALLOWED_REFERER']); - if(!refererError) config = await configManager.loadConfig(FileType.Application); - const validationError = refererError === "" ? await RequestValidator.validateRequest(formData, FileType.Application, config.recaptchaV2VerifyUrl, config.recaptchaV2SecretKey) : 'Access forbidden'; - if (validationError) { - return { statusCode: validationError === 'Access forbidden' ? 403 : 400, headers: HEADERS, body: validationError }; - } + // if(!refererError) config = await configManager.loadConfig(FileType.Application); + // const validationError = refererError === "" ? await RequestValidator.validateRequest(formData, FileType.Application, config.recaptchaV2VerifyUrl, config.recaptchaV2SecretKey) : 'Access forbidden'; + // if (validationError) { + // return { statusCode: validationError === 'Access forbidden' ? 403 : 400, headers: HEADERS, body: validationError }; + // } switch (formData.requestType) { case RequestTypes.RequestThisAppToBeTested: