我无法让silverstripe-recaptcha和silverstripe-spamprotection在SS4和silverstripe-userforms上工作。
在我的app/_config/spamprotection.yml.yml中:
SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension:
default_spam_protector: SilverStripe\Recaptcha\RecaptchaProtector
在我的app/_config/recaptcha.yml中:注意:我尝试过使用和不使用引号将api密钥括起来。
SilverStripe\Recaptcha\RecaptchaField:
public_api_key: xxx
private_api_key: xxx
我有:
中添加了反垃圾邮件字段
控制台中没有错误/警告。
有人把它修好了吗?你能看到我错过了什么吗?
https://stackoverflow.com/questions/56746008
复制相似问题