npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

recaptcha_middleman

0.1.2 • Public • Published

Recaptcha Middleman

Google recaptcha api middleware for nodejs

RobertSteckroth@Gmail.com

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() {})

Keywords

install

npm i recaptcha_middleman

Downloadsweekly downloads

0

version

0.1.2

license

GPL-3.0

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability