3dgoo/silverstripe-hcaptcha
最新稳定版本:3.0.1
Composer 安装命令:
composer require 3dgoo/silverstripe-hcaptcha
包简介
A spam protector and form field using hCaptcha for Silverstripe
README 文档
README
A spam protection field using the hCaptcha service for Silverstripe.
Requirements
- Silverstripe Framework
- Silverstripe Spam Protection
- Guzzle
Installation (with composer)
$ composer require 3dgoo/silverstripe-hcaptcha
Configuration
After installing the module via composer we must set the spam protector to HCaptchaProtector through a config yml file.
Create a app/_config/spamprotection.yml file and add the following details:
--- name: app-spamprotection --- SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension: default_spam_protector: X3dgoo\HCaptcha\Forms\HCaptchaProtector X3dgoo\HCaptcha\Forms\HCaptchaField: site_key: "YOUR_SITE_KEY" secret_key: "YOUR_SECRET_KEY"
We generate our site key and secret key at https://www.hcaptcha.com/
The default language of the captcha will be set to the site language. This can be changed by setting the language_code variable to any of the available hCaptacha languages. If not set this will default to the current site locale:
X3dgoo\HCaptcha\Forms\HCaptchaField: language_code: "de"
统计信息
- 总下载量: 1.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-04
