Created
December 19, 2013 19:48
-
-
Save earthtrip/8045070 to your computer and use it in GitHub Desktop.
Simple Recaptcha validation HTML form fragment when using Google App Engine (GAE), Webapp2 and WTForms.
This file contains hidden or 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
<label>Verify you're human:</label> | |
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=YOUR_RECAPTCH_PUBLIC_KEY_HERE"> | |
</script> | |
<noscript> | |
<iframe src="http://www.google.com/recaptcha/api/noscript?k=YOUR_RECAPTCH_PUBLIC_KEY_HERE" height="300" width="500" frameborder="0"></iframe><br> | |
<textarea name="recaptcha_challenge_field" rows="3" cols="40"> | |
</textarea> | |
<input type="hidden" name="recaptcha_response_field" value="manual_challenge"> | |
</noscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the controller code for a Google App Engine, WebApp2, WTForms application:
https://gist.github.com/mengelhart/8045030