0.1.2 • Published 9 years ago
recaptcha_middleman v0.1.2
Recaptcha Middleman
Google recaptcha api middleware for nodejs
var Print = require("wizkit_print"),
Recaptcha = require("recaptcha_middleman")
var up = Print("Recaptcha example")
// This key is for testing as specified in the api docs
var recaptcha_secret_key = "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"
var recaptcha = new Recaptcha(recaptcha_secret_key, up)
// Verfify the recaptcha data sent to the server
recaptcha.verify(form_data["g-recaptcha-response"], http(s).req.connection.remoteAddress,
function success() { }, function invalid() {})