Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

onedesign/craft-sprout-forms-google-recaptcha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google reCAPTCHA for Sprout Forms

This is a forked version that's been modified to support environment variables for Google reCAPTCHA's Site Key and Secret Key.

Modifies files

src/templates/_integrations/sproutforms/captchas/GoogleRecaptcha/settings.twig
  • Changes field type from textField to autosuggestField
  • Adds suggestEnvVars: true to field config
src/integrations/sproutforms/captchas/GoogleRecaptcha.php
  • Wraps $this->siteKey and $this->secretKey values in the Craft::parseEnv() function

Get upsteam updates

  1. Add the upstream repo to your remotes with git remote add upstream https://github.com/barrelstrength/craft-sprout-forms-google-recaptcha.git
  2. git pull upstream <branch_name>

Add Google reCAPTCHA spam prevention to Sprout Forms

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 90.5%
  • HTML 9.5%