ctigelaar/craft-recaptcha 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ctigelaar/craft-recaptcha

Composer 安装命令:

composer require ctigelaar/craft-recaptcha

包简介

Google reCAPTCHA for Craft CMS

README 文档

README

Craft plugin to dispaly Google's new reCaptcha form widget and validate responses.

##Install

  1. Upload entire recaptcha directory to craft/plugins on your server.
  2. Navigate to your site's Plugin settings from the Control Panel.
  3. Click Install
  4. Click on the 'reCAPTCHA for Craft' link to enter in your reCAPTCHA site key and secret key. You can get both keys from the Google reCaptcha console.

##Usage ###Templates To display a reCAPTCHA widget in any template, use {{craft.recaptcha.render()}}.

###User Registration Form To use the Recaptcha in a front-end User Registration form, simply do this:

<form method="post" accept-charset="UTF-8" >
    {{ getCsrfInput() }}
    <input type="hidden" name="action" value="recaptcha/service/saveUser">

...and assuming it passes Recaptcha validation, the user registration will be passed along to users/saveUser

###Verification To verify a user's input, call the plugin's verify service from your own plugin:

$captcha = craft()->request->getPost('g-recaptcha-response');
$verified = craft()->recaptcha_verify->verify($captcha);
if($verified)
{
    //User is a person, not a robot. Go on and process the form!
} else {
    //Uh oh...its a robot. Don't process this form!
}

##Roadmap Currently this only supports the standard reCAPTCHA widget, but I hope to add some capabilities to adjust the styling and functionality.

统计信息

  • 总下载量: 523
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-12-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固