diff --git a/verification/curator-service/api/src/util/validate-recaptcha-token.ts b/verification/curator-service/api/src/util/validate-recaptcha-token.ts index 29f81996c..459f0e1ce 100644 --- a/verification/curator-service/api/src/util/validate-recaptcha-token.ts +++ b/verification/curator-service/api/src/util/validate-recaptcha-token.ts @@ -6,7 +6,9 @@ export const validateRecaptchaToken = async ( ): Promise => { const env = validateEnv(); const response = await axios.post( - `https://www.google.com/recaptcha/api/siteverify?secret=${env.RECAPTCHA_SECRET_KEY}&response=${token}`, + `https://www.google.com/recaptcha/api/siteverify?secret=${ + env.RECAPTCHA_SECRET_KEY || process.env.RECAPTCHA_SECRET_KEY + }&response=${token}`, ); return response.data.success; diff --git a/verification/curator-service/ui/src/components/FiltersDialog/index.tsx b/verification/curator-service/ui/src/components/FiltersDialog/index.tsx index 72dde6760..32e35c335 100644 --- a/verification/curator-service/ui/src/components/FiltersDialog/index.tsx +++ b/verification/curator-service/ui/src/components/FiltersDialog/index.tsx @@ -497,13 +497,14 @@ export default function FiltersDialog({ formik.touched.variant && formik.errors.variant } /> + diff --git a/verification/curator-service/ui/src/components/landing-page/SignInForm.tsx b/verification/curator-service/ui/src/components/landing-page/SignInForm.tsx index e673c8ccf..ab597d153 100644 --- a/verification/curator-service/ui/src/components/landing-page/SignInForm.tsx +++ b/verification/curator-service/ui/src/components/landing-page/SignInForm.tsx @@ -73,7 +73,8 @@ interface SignInFormProps { const RECAPTCHA_SITE_KEY = window.Cypress ? '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI' - : (process.env.RECAPTCHA_SITE_KEY as string); + : ((process.env.RECAPTCHA_SITE_KEY || + process.env.REACT_APP_RECAPTCHA_SITE_KEY) as string); export default function SignInForm({ disabled, diff --git a/verification/curator-service/ui/src/components/landing-page/SignUpForm.tsx b/verification/curator-service/ui/src/components/landing-page/SignUpForm.tsx index 3b964e8ec..304be3926 100644 --- a/verification/curator-service/ui/src/components/landing-page/SignUpForm.tsx +++ b/verification/curator-service/ui/src/components/landing-page/SignUpForm.tsx @@ -94,7 +94,8 @@ interface SignUpFormProps { const RECAPTCHA_SITE_KEY = window.Cypress ? '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI' - : (process.env.RECAPTCHA_SITE_KEY as string); + : ((process.env.RECAPTCHA_SITE_KEY || + process.env.REACT_APP_RECAPTCHA_SITE_KEY) as string); export default function SignUpForm({ disabled,