headjam/simple-recaptcha
Composer 安装命令:
composer require headjam/simple-recaptcha
包简介
A Craft plugin that allows the addition of Google's reCAPTCHA v3 to any simple HTML form and verifies server-side.
README 文档
README
Allows the addition of Google's reCAPTCHA V3 to any simple HTML form and verifies server-side. Heavily influenced by Matt West's Craft reCAPTCHA for Google reCAPTCH V2.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require headjam/simple-recaptcha -
In the Control Panel, go to Settings → Plugins and click the “Install” button for Simple Recaptcha.
Configuring Simple Recaptcha
- Sign up for reCAPTCHA API key.
- Open the Craft admin and go to Settings → Plugins → Simple Recaptcha → Settings.
- Add your
site keyandsecret key, then save. Alternatively, copy the contents ofsrc/config.phptoconfig/simple-recaptcha.phpand update. - Add the recaptcha template tag to your forms.
Using Simple Recaptcha
To use Simple Recaptcha, add the recaptcha.render tag with the url you are protecting. For example:
{{ craft.recaptcha.render('users/login') }}
Brought to you by Ben Norman
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-24
