Integrate Invisible reCAPTCHA option from Google

Created on 13 February 2017, over 7 years ago
Updated 18 January 2024, 5 months ago

Google is coming out with a new option for the reCAPTCHA service: https://developers.google.com/recaptcha/docs/invisible

It would be cool if we could have the option to use the invisible widget with this module. It doesn't look like there's much of a difference in markup for the invisible widget.

TODO:

  • The Invisible reCAPTCHA requires JavaScript and has no support for browsers without JavaScript enabled. This means the NOSCRIPT fallback no longer works and need to be removed if invisible captcha is used.
✨ Feature request
Status

Needs work

Version

3.0

Component

Invisible reCAPTCHA

Created by

πŸ‡ΊπŸ‡ΈUnited States amklose Wisconsin

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

    A documentation change is requested elsewhere. For Drupal core (and possibly other projects), once the change has been committed, this status should be recorded in a change record node.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Status changed to Needs review about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smokris Athens, Ohio, USA

    I opened an issue fork consisting of hswong3i's patch from comment #206, plus a commit to remove another stray reference to the removed $noscript variable.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 8
    last update about 1 year ago
    2 fail
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update 11 months ago
    Patch Failed to Apply
  • πŸ‡«πŸ‡·France NuWans

    I'm on drupal 10 and recaptcha 3.2, the patch is not applicable on this version. Does anyone use it on this version? Is it planned to adapt?
    THANKS

  • πŸ‡ΊπŸ‡ΈUnited States dchaffin

    What is the status of this? I would really like to be able to update to reCaptcha v3. Thanks!

  • πŸ‡³πŸ‡ΏNew Zealand roxflame

    @dchaffin, I suggest using this other module while we wait for this to be integrated here
    https://www.drupal.org/project/recaptcha_v3 β†’

    You can use it as the primary captcha, and have it fall back to this module if it fails validation.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @smokris this please needs a rebase.
    All others: Once rebased, please test the MR and check if it's working. Can someone help about the documentation, please? (Needs documentation tag)

    I hope we can then integrate this soon.

    For the next time, I think it might make sense to add such new features as (experimental) separate submodules so we don't have to fear breaking something in production for the existing functionality?

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.2 & MySQL 8
    last update 7 months ago
    4 pass
  • πŸ‡ΊπŸ‡ΈUnited States smokris Athens, Ohio, USA

    Rebased.

  • Pipeline finished with Success
    7 months ago
    #64523
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @smokris thanks! There's still a TODO in the IS, is that old or still to TBD? Sorry I don't have much time currently, so further community help would speed up the process here for sure.

  • Status changed to Needs work 6 months ago
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • First commit to issue fork.
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.2 & MySQL 8
    last update 6 months ago
    4 pass
  • Pipeline finished with Success
    6 months ago
    Total: 144s
    #71561
  • πŸ‡«πŸ‡·France dark05

    Hello :-) It works with ReCaptcha version 3.2.0 and patch β†’
    Thanks

  • πŸ‡¨πŸ‡¦Canada OwilliwO Montreal

    Sadly, PR 15 diff is not applicable on top of 3.2 stable version.
    And the applicable patch from comment #206 is using an undefined variable $noscript (creating a PHP warning).

    Here is a quite patch I've applied on top of V3.2 + patch #206.

    diff --git a/recaptcha.module b/recaptcha.module
    index b28364a..435ac8b 100644
    --- a/recaptcha.module
    +++ b/recaptcha.module
    @@ -98,7 +98,6 @@ function recaptcha_captcha($op, $captcha_type = '') {
     
               $captcha['form']['recaptcha_widget'] = [
                 '#markup' => '<div' . new Attribute($attributes) . '></div>',
    -            '#suffix' => $noscript,
                 '#attached' => [
                   'html_head' => [
                     [
    

    Not sure why, but I've not been able to generate a full patch including this variable removal. Sorry about that.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.2.x + Environment: PHP 8.2 & MySQL 8
    last update 22 days ago
    4 pass
  • Pipeline finished with Failed
    22 days ago
    Total: 144s
    #192711
Production build 0.69.0 2024