reCAPTCHA fallback to Math captcha when the reCAPTCHA scripts cant load

Created on 22 February 2023, over 1 year ago
Updated 12 December 2023, 7 months ago

Problem/Motivation

We have a scenario that in specific cases the third-party javascript is blocked. In those cases, we want to bypass reCAPTCHA and fallback to Math captcha so that users can log in.

Steps to reproduce

Enable reCAPTCHA on a login form.
Block https://www.google.com/recaptcha/api.js in the browser (https://superuser.com/questions/1222585/how-block-1-specific-javascript-... )
Refresh the page.
The reCAPTCHA is not visible.
Submit the login form.
It says "Your answer was incorrect."

Proposed resolution

Make a HEAD request to api.js before loading it. If HEAD request is failing then fallback to Match captcha

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs work

Version

3.0

Component

reCAPTCHA V3

Created by

πŸ‡³πŸ‡±Netherlands gopisathya

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024