thezenmonkey / newrecaptcha
使用Google新版的‘我不是机器人’reCAPTCHA的垃圾邮件防护器
dev-master
2015-01-17 05:28 UTC
Requires
This package is auto-updated.
Last update: 2024-08-26 09:32:10 UTC
README
SpamProtector模块,使用Google的新reCaptcha字段。‘我不是机器人’复选框。
需求
- SilverStripe 3.1+
- SpamProtection模块 https://github.com/silverstripe/silverstripe-spamprotection
安装
解压缩到您的项目中,并在您的config.yml中添加以下内容
--- name: spamprotection --- FormSpamProtectionExtension: default_spam_protector: NoCaptchaProtector NoCaptchaField: PublicKey : '<Your Public Key>' PrivateKey: '<Your Private Key>'
如果您省略了CaptchaAPI的声明,它将默认为'demo',这将为测试提供更小的问题子集
待办事项
- 启用更健壮的PHP验证
- 单元测试(如果我学会了它们)