gerdemann/recaptcha

Neos plugin for Google reCAPTCHA

Fund package maintenance!
paypal.me/gerdemann

Installs: 13 707

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 2

Forks: 4

Open Issues: 1

Type:neos-plugin

3.0.1 2022-03-18 08:09 UTC

This package is auto-updated.

Last update: 2024-03-18 12:17:27 UTC


README

Neos plugin for Google reCAPTCHA

How-To:

  • Install the package to Packages/Plugin/Gerdemann.ReCAPTCHA (e.g. via composer require gerdemann/recaptcha)

  • Get your sitekey and shared secret at https://www.google.com/recaptcha/admin

  • Add the reCAPTCHA element to your form:

    -
      type: 'Gerdemann.ReCAPTCHA:ReCAPTCHA'
      identifier: 'recaptcha'
      properties:
        sitekey: 'ENTER_HERE_YOUR_SITEKEY'
      validators:
        - identifier: 'Neos.Flow:NotEmpty'
        - identifier: 'Gerdemann.ReCAPTCHA:ReCAPTCHA'
          options:
            secret: 'ENTER_HERE_YOUR_SHARED_SECRET'
    

Settings:

You can predefine default values for secret and sitekey in Settings.yaml. If no specific values are given in the form the captcha-element will fallback to those values.

Gerdemann:
 ReCAPTCHA:
   sitekey: ~
   secret: ~

Hint:

Two javascript files are included in /Resources/Private/Fusion/Root.fusion on the page. If this is not desired, these can be individually removed via a condition. To ensure the functionality, these files are at least necessary on pages with form.

Version hint

The Version 1.* is compatible with Neos 2.0, but this version is no longer supported. For Neos 3.0 versions 2. * can be used.

License

The MIT License (MIT). Please see LICENSE for more information.