/recaptcha

Enables Google reCAPTCHA spam protection on your GPL Cart site

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Build Status Scrutinizer Code Quality

reCAPTCHA is a GPL Cart module that enables "Google reCAPTCHA" spam protection on your site. In order to use this module you must register an account on google.com/recaptcha

Requirements:

  • CURL

Installation

  1. Download and extract to system/modules manually or using composer composer require gplcart/recaptcha. IMPORTANT: If you downloaded the module manually, be sure that the name of extracted module folder doesn't contain a branch/version suffix, e.g -master. Rename if needed.
  2. Go to admin/module/list end enable the module
  3. Go to google.com/recaptcha, create your site and server keys then paste them on admin/module/settings/recaptcha

To protect custom forms print reCAPTCHA widget manually using one of the following code:

  • PHP templates: <?php echo $captcha; ?>
  • TWIG templates: {{ captcha|raw }}