Spamprotection / Recaptcha on SS4

silverstripe-4
Tags: #<Tag:0x00007f10cfcf3438>

#1

Silverstripe Version:
4.4

Question:
I’m unable to get silverstripe-recaptcha and silverstripe-spamprotection working on SS4 with silverstripe-userforms.

In my app/_config/spamprotection.yml:

SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
  default_spam_protector: SilverStripe\Recaptcha\RecaptchaProtector

In my app/_config/recaptcha.yml:
Note: have tried with and without quotes around the api keys.

SilverStripe\Recaptcha\RecaptchaField:
  public_api_key: xxx
  private_api_key: xxx

I have:
-Done a dev/build and ?flush
-Added the anti-spam field in my userform

No errors / warnings in the console.

Has anybody got this working?
Can you see what I’m missing?


#2

Was being overridden by another module.