tms/cloudflare-turnstile
最新稳定版本:2.0.0
Composer 安装命令:
composer require tms/cloudflare-turnstile
包简介
Cloudflare's smart CAPTCHA alternative Turnstile for Neos.Form
README 文档
README
This package provides a form element for the CAPTCHA alternative Turnstile by Cloudflare and can be used on your Neos CMS site with Neos.Form & Neos.Form.Builder.
Turnstile is Cloudflare’s smart CAPTCHA alternative. It can be embedded into any website without sending traffic through Cloudflare and works without showing visitors a CAPTCHA.
Cloudflare Turnstile documentation: https://developers.cloudflare.com/turnstile/
Install
composer require tms/cloudflare-turnstile
Usage
1.) Create a free Cloudflare account or log in to your existing one
2.) Go to Turnstile
3.) Select Add a site and fill out the form
4.) Copy the site key and secret key and add the following environment variables
# Configuration/Settings.yaml Tms: Cloudflare: Turnstile: siteKey: '%env:CLOUDFLARE_TURNSTILE_SITE_KEY%' secretKey: '%env:CLOUDFLARE_TURNSTILE_SECRET_KEY%'
Note: In
Developmentcontext the package automatically sets test keys that always pass
5.) Add the Turnstile form element to your form configuration or use the Turnstile content element in your node-based forms
prototype(Vendor.PackageName:MyForm) < prototype(Neos.Form.Builder:Form) {
firstPage.elements {
turnstile = Tms.Cloudflare.Turnstile:Turnstile.Definition
}
}
Notes
By default, the Turnstile API is called on form interaction. Set lazyload: false to call the API on page load.
# Configuration/Settings.yaml Tms: Cloudflare: Turnstile: lazyload: true
Acknowledgments
Development sponsored by tms.development - Online Marketing and Neos CMS Agency
统计信息
- 总下载量: 347
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-02-20