From 822fcb1e740d942a5849e4d8e496512986b480d5 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 1 Apr 2024 11:07:04 +0800 Subject: [PATCH] Add some logging --- packages/api/src/routers/auth/auth_router.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/api/src/routers/auth/auth_router.ts b/packages/api/src/routers/auth/auth_router.ts index 062211539..3af801ae4 100644 --- a/packages/api/src/routers/auth/auth_router.ts +++ b/packages/api/src/routers/auth/auth_router.ts @@ -521,12 +521,15 @@ export function authRouter() { if (recaptchaToken && process.env.RECAPTCHA_CHALLENGE_SECRET_KEY) { const verified = await verifyChallengeRecaptcha(recaptchaToken) - console.log('recaptcha result: ', verified) - if (!verified) { - return res.redirect( - `${env.client.url}/auth/email-signup?errorCodes=UNKNOWN` - ) - } + 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` + // ) + // } } // trim whitespace in email address