Make this optional for self hosters

This commit is contained in:
Jackson Harper
2024-04-01 00:05:24 +08:00
parent 2257a5a42e
commit 442475d684
2 changed files with 19 additions and 11 deletions

View File

@ -511,7 +511,7 @@ export function authRouter() {
recaptchaToken,
} = req.body
if (recaptchaToken) {
if (recaptchaToken && process.env.RECAPTCHA_CHALLENGE_SECRET_KEY) {
const verified = await verifyChallengeRecaptcha(recaptchaToken)
if (!verified) {
return res.redirect(