A fork of BIT IT's reCAPTCHA v3 updated for 6.2. Google's reCAPTCHA v3 returns a score for each request without user friction. The score is based on interactions with your site and enables you to take an appropriate action for your site. The module includes decorations for the form module so no assembly required. Simply make the form components available on your site.
Prerequisites
Register reCAPTCHA v3 keys here.
Installation
Available as a light module
Magnolia 6.2 | magnolia-recaptcha-v3 6.2 |
---|---|
Magnolia 5.7 | magnolia-recaptcha-v3 5.7 |
Issues, Bugs and Improvements
Report them here: https://github.com/rgange/magnolia-recaptcha-v3/issues
Usage
Use the Google reCAPTCHA dashboard to see the request statistics.
Configuration
There is a secret key and a site key to be set.
- secret key: See https://github.com/rgange/magnolia-recaptcha-v3/blob/master/templates/js/formProcessors/recaptcha.js
- site key: Set by the component dialog. See magnolia-recaptcha-v3:components/form/googleCaptchaField
The module is already decorating two components the forms module. Simply make the form components available on your site. See the travel demo for an example.
Using the contact page of the travel demo as an example, you can see the reCAPTCHA logo in the bottom corner when the component has been added to the page.
Known Issues
- Two processors, which should I use?
The script addRecaptcha.js is the original script from BIT IT and requires an additional jar outside the jars already provided by community edition.
<dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20201115</version> </dependency>
The script recpatcha.js does not require any additional resources.