barrelstrength / sprout-forms-google-recaptcha

MIT License
3 stars 5 forks source link

Google reCaptcha Config Overrides Not Being Applied #24

Closed ademers closed 4 years ago

ademers commented 4 years ago

Description (screenshots, logs, ...)

Google reCaptcha config overrides not being applied. Screenshot: https://share.getcloudapp.com/NQugg542

Steps to reproduce

  1. Create config/sprout-forms.php file.
  2. Add Sprout Forms config overrides to sprout-forms.php.
  3. Add Google reCaptcha config overrides as follows with enabled set to true.
    // ...

    'captchaSettings' => [
        'barrelstrength\sproutforms\captchas\DuplicateCaptcha' => [
            'enabled' => true,
        ],
        'barrelstrength\sproutforms\captchas\JavascriptCaptcha' => [
            'enabled' => true,
        ],
        'barrelstrength\sproutforms\captchas\HoneypotCaptcha' => [
            'enabled' => true,
            'honeypotFieldName' => 'beesknees',
            'honeypotScreenReaderMessage' => 'Leave this field blank'
        ],
        'sproutformsgooglerecaptcha-googlerecaptcha' => [

            // Enable the Captcha for use.
            'enabled' => true,
           // ... 
  1. Check settings in CP and notice that Google reCAPTCHA is disabled.

Additional info

For some issues, we may request that you send the following items to Support sprout@barrelstrengthdesign.com. If you feel your issue may fall in that category, feel free to send things over after you post this issue and reference the issue in your email.

ademers commented 4 years ago

It looks like sproutformsgooglerecaptcha-googlerecaptcha should be barrelstrength\sproutformsgooglerecaptcha\integrations\sproutforms\captchas\GoogleRecaptcha instead as per https://github.com/barrelstrength/craft-sprout-forms/issues/497