Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 910 Bytes

README.md

File metadata and controls

51 lines (33 loc) · 910 Bytes

reCAPTCHA for Nette Framework

Installation

composer require uestla/recaptcha-control

For frontend javascript that activates reCAPTCHA(s), use

bower install

Usage

config.neon

extensions:
	reCaptcha: ReCaptchaControl\ReCaptchaExtension

reCaptcha:
	siteKey: '<your_site_key>'
	secretKey: '<your_secret_key>'
	methodName: 'addReCaptcha' # optional

Form

$form->addReCaptcha('captcha', NULL, "Please prove you're not a robot.");

Template

The most robust way to render reCAPTCHA is to do it by hand. Take a look at recaptcha.js where this is done using native javascript DOM manipulation supported by all modern browsers.

And that's it!