captcha-eu / neos
表单元素,用于将 Captcha.eu 集成到 Neos 流表单框架
1.0
2024-02-07 19:15 UTC
Requires
- neos/form: ^5.0
Suggests
- neos/form-builder: Build custom forms in Neos CMS backend
This package is not auto-updated.
Last update: 2024-09-19 20:10:04 UTC
README
基于 ahornlabs/friendly-captcha-neos 的分支 - 存在大量问题!!
Neos 表单框架的 Captcha.eu 集成
此软件包添加了一个表单元素,可以将 Captcha.eu 验证集成到您的表单中。
请注意:您需要 Captcha.eu 账户才能使用此软件包。
安装
该软件包可以通过 Composer 安装。
$ composer require captcha-eu/neos
配置
您需要添加从您的 Captcha.eu 账户获取的公钥(publicKey
)和 Rest 密钥(restKey
)。如果您需要更多信息,请参阅官方 Captcha.eu 文档。
CaptchaEU: CaptchaEU: publicKey: 'add-you-site-key' restKey: 'add-you-secret-key'
在生产环境中,我们强烈建议使用环境变量来设置值。
使用 Neos.Form.Builder 添加表单元素
在 Neos 后端创建一个新的表单。将新的 Captcha.eu 表单元素添加到您的表单中。
与 Neos.Form 一起使用
只需将新的表单元素添加到您的表单定义的可渲染项中
type: 'Neos.Form:Form' identifier: someIdentifier label: Label renderables: - type: 'Neos.Form:Page' identifier: page-one renderables: - type: 'CaptchaEU.CaptchaEU:Captcha' identifier: captcha label: Captcha properties: publicKey: your-public-key restKey: your-private-key finishers: - <Your finishers here>
覆盖设置
您可以在节点属性中覆盖以下配置
- 公钥
- Rest 密钥