diff --git a/src/lib/applications.js b/src/lib/applications.js index c61f892c..2799f703 100644 --- a/src/lib/applications.js +++ b/src/lib/applications.js @@ -43,20 +43,22 @@ form.addEventListener("submit", (e) => { e.preventDefault(); pageLoading(true); - var captchaVerificationToken = grecaptcha.getResponse(); - if (captchaVerificationToken.length == 0) { - showSuccessAlert(successAlertId, false); - showErrorAlert(errorAlertId, errorAlertInnerElementId, true, ErrorMessages.MISSING_CAPTCHA_ERROR); - setTimeout(() => { - showErrorAlert(errorAlertId, errorAlertInnerElementId, false, ""); - }, 3000); - } else { + // var captchaVerificationToken = grecaptcha.getResponse(); + // if (captchaVerificationToken.length == 0) { + // showSuccessAlert(successAlertId, false); + // showErrorAlert(errorAlertId, errorAlertInnerElementId, true, ErrorMessages.MISSING_CAPTCHA_ERROR); + // setTimeout(() => { + // showErrorAlert(errorAlertId, errorAlertInnerElementId, false, ""); + // }, 3000); + // } else + { var data = new FormData(form) fetch(`${import.meta.env.PUBLIC_API_HOST}${import.meta.env.PUBLIC_APPLICATION_API_ENDPOINT}`, { method: "POST", body: JSON.stringify({ "name": data.get("name"), - "token": captchaVerificationToken, + // "token": captchaVerificationToken, + "token": "", "publisher": data.get("publisher"), "requestType": data.get("report"), "appCategories": data.get("categories") ?? "", diff --git a/src/pages/[lang]/contributing/applications.astro b/src/pages/[lang]/contributing/applications.astro index dfb86ff0..854f1a34 100644 --- a/src/pages/[lang]/contributing/applications.astro +++ b/src/pages/[lang]/contributing/applications.astro @@ -11,7 +11,6 @@ export function getStaticPaths() { } const locale = updateLanguage(Astro.url); -const recaptcha_url = `https://www.google.com/recaptcha/api.js?hl=${locale}`; --- {t('application_form.icon.description')} -
-
-
- \ No newline at end of file