thezenmonkey/newrecaptcha

使用Google新版的‘我不是机器人’reCAPTCHA的垃圾邮件防护器

安装: 209

依赖项: 0

建议者: 0

安全: 0

星星: 0

关注者: 1

分支: 1

开放性问题: 3

类型:silverstripe-module

dev-master 2015-01-17 05:28 UTC

This package is auto-updated.

Last update: 2024-08-26 09:32:10 UTC


README

SpamProtector模块,使用Google的新reCaptcha字段。‘我不是机器人’复选框。

需求

安装

解压缩到您的项目中,并在您的config.yml中添加以下内容

---
name: spamprotection
---
FormSpamProtectionExtension:
  default_spam_protector: NoCaptchaProtector
NoCaptchaField:
  PublicKey : '<Your Public Key>'
  PrivateKey: '<Your Private Key>'

如果您省略了CaptchaAPI的声明,它将默认为'demo',这将为测试提供更小的问题子集

待办事项

  • 启用更健壮的PHP验证
  • 单元测试(如果我学会了它们)