7sg / fusion-form-recaptcha
此包最新版本(1.0.0)没有提供许可信息。
ReCaptcha 表单元素用于 Fusion Forms
1.0.0
2023-02-04 09:49 UTC
Requires
- google/recaptcha: ^1.2
- neos/fusion-form: ^2.0
This package is auto-updated.
Last update: 2024-09-05 09:03:45 UTC
README
为 Fusion Forms 包提供两个元素(V2 + V3),以便使用 Google 的 ReCaptcha 服务。
安装
composer require 7sg/fusion-form-recaptcha
配置
将以下内容添加到您的 Settings.yaml
Seven: Fusion: Form: ReCaptcha: siteKey: 'SOME_SITE_KEY' secretKey: 'SOME_SECRET_KEY'
将元素添加到您的表单中
请注意: 目前每个页面只能使用一个 ReCaptcha 元素。
V2(通过挑战验证请求)
<Seven.Fusion.Form.ReCaptcha:ReCaptchaV2/>
V3(通过分数验证请求)
此版本需要传递一个动作名称给元素。
<Seven.Fusion.Form.ReCaptcha:ReCaptchaV3 action="Your action name"/>
许可
MIT 许可协议