dev-master
9999999-devGoogle reCAPTCHA for Craft CMS
The Requires
1.0.1
1.0.1.0Google reCAPTCHA for Craft CMS
The Requires
1.0.0
1.0.0.0Google reCAPTCHA for Craft CMS
The Requires
Wallogit.com
2017 © Pedro Peláez
Google reCAPTCHA for Craft CMS
Craft plugin to dispaly Google's new reCaptcha form widget and validate responses., (*1)
To display a reCAPTCHA widget in any template, use {{craft.recaptcha.render()}}., (*2)
To use the Recaptcha in a front-end User Registration form, simply do this:, (*3)
<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, (*4)
To verify a user's input, call the plugin's verify service from your own plugin:, (*5)
$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!
}
Currently this only supports the standard reCAPTCHA widget, but I hope to add some capabilities to adjust the styling and functionality., (*6)
Google reCAPTCHA for Craft CMS
Google reCAPTCHA for Craft CMS
Google reCAPTCHA for Craft CMS