captcha - Show how to use a captcha within Extenso
How to use Google's ReCaptcha.
Go to https://www.google.com/recaptcha/
Register a new site labeled with the project name,
In the domains, set domain names related to the website, including sednove.ca and sednove.com which will also include subdomains for staging, etc.
Click Register.
You will get two keys.
Put the Site key in the Front-end replacing the 00000000....
Put the Secret key in the back-end.
In the Owners, add google@sednove.com
<!-- ReCaptcha -->
<div class="field-row">
<script src='https://www.google.com/recaptcha/api.js?hl={{lg.rows.lg}}'></script>
<div class="g-recaptcha" data-sitekey="000000000000000000000000000000000000000"></div>
</div>
// ReCaptcha
google_recaptcha_secret = "000000000000000000000000000000000000000";
captcha_check = curl(
url: 'https://www.google.com/recaptcha/api/siteverify',
data:"secret=" .+ google_recaptcha_secret .+ '&response=' .+ cgidata{'g-recaptcha-response'}
);
google_check_data = unstringnify(captcha_check.body);
// google_check_data.success
Written by Olivier St-Laurent, <olivier@sednove.com>
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
1.0 2014-09-09 21:24:14 laplante@sednove.com