Skip to content

Commit

Permalink
Temporarily disable checking recaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-linaro committed Dec 19, 2024
1 parent b65ee55 commit 561e3fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aws-lambdas/utils/request-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ export default class RequestValidator {
static async validateRequest(data, fileType, recaptchaV2VerifyUrl, recaptchaV2SecretKey) {
let error = this.validateFormData(data, fileType);

if (error === "") {
error = await validateReCaptchaV2(recaptchaV2VerifyUrl, recaptchaV2SecretKey, data.token ?? "");
}
// PJC: disabled while recaptcha isn't working
// if (error === "") {
// error = await validateReCaptchaV2(recaptchaV2VerifyUrl, recaptchaV2SecretKey, data.token ?? "");
// }

return error;
}
Expand Down

0 comments on commit 561e3fb

Please sign in to comment.