This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- 2/4/2016 isRecaptchaGood | |
by SunStar Media | |
Requires this Recaptcha v2.0 JS in the HEAD: | |
<script src="https://www.google.com/recaptcha/api.js" type="text/javascript"></script> | |
Requires this to be on the form (at a minimum): | |
<div class="g-recaptcha" data-sitekey="#Request.Api.recaptcha.SiteKey#"></div> | |
To validate (if not configured properly, will return true): | |
isRecaptchaGood(); /* Recommended usage. Uses form parameter, Request.Api.Recaptcha.secret & CGI.Remote_Addr */ | |
isRecaptchaGood(Form["g-recaptcha-response"]); | |
isRecaptchaGood(Form["g-recaptcha-response"], RecaptchaSecret); |