node-recaptcha
v0.0.0
Published
Google's Recaptcha server-side module for Node.JS
Downloads
15
Readme
node-recaptcha
Google's Recaptcha server-side module for Node.JS
Setup
Before you can use this module, you must visit http://www.google.com/recaptcha to request a public and private API key for your domain.
Sample usage
var Recaptcha = require('node-recaptcha');
Recaptcha.privateKey = 'Your private key...';
Recaptcha.verify('<Remote address>', '<challenge>', '<response>', function(err){
if(err){
if(err === 'module-error'){
// Something is wrong with module (unexpected response)
}
else {
// Google's error response
}
}
else {
// TODO!
// Challenge verified! It's a human. What would you like to do here?
}
});