diff --git a/packages/api/src/routers/auth/auth_router.ts b/packages/api/src/routers/auth/auth_router.ts index fa1cf763e..7953eef0a 100644 --- a/packages/api/src/routers/auth/auth_router.ts +++ b/packages/api/src/routers/auth/auth_router.ts @@ -512,15 +512,12 @@ export function authRouter() { if (recaptchaToken && process.env.RECAPTCHA_CHALLENGE_SECRET_KEY) { const verified = await verifyChallengeRecaptcha(recaptchaToken) - console.log('recaptcha result: ', recaptchaToken, verified) - // temporarily do not fail here so we can deploy this in stages - // just log the verification - - // if (!verified) { - // return res.redirect( - // `${env.client.url}/auth/email-signup?errorCodes=UNKNOWN` - // ) - // } + if (!verified) { + logger.info('recaptcha failed', recaptchaToken, verified) + return res.redirect( + `${env.client.url}/auth/email-signup?errorCodes=UNKNOWN` + ) + } } // trim whitespace in email address