mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3768 from omnivore-app/fix/api-force-recaptcha
This commit is contained in:
commit
d827e08d1a
1 changed files with 3 additions and 2 deletions
|
|
@ -510,8 +510,9 @@ export function authRouter() {
|
|||
recaptchaToken,
|
||||
} = req.body
|
||||
|
||||
if (recaptchaToken && process.env.RECAPTCHA_CHALLENGE_SECRET_KEY) {
|
||||
const verified = await verifyChallengeRecaptcha(recaptchaToken)
|
||||
if (process.env.RECAPTCHA_CHALLENGE_SECRET_KEY) {
|
||||
const verified =
|
||||
recaptchaToken && (await verifyChallengeRecaptcha(recaptchaToken))
|
||||
if (!verified) {
|
||||
logger.info('recaptcha failed', recaptchaToken, verified)
|
||||
return res.redirect(
|
||||
|
|
|
|||
Loading…
Reference in a new issue