easy-captcha
v0.0.4 captcha
var captcha = require('captcha');
app.use('/captcha.jpg',captcha({width:256,height:60,offset:40, quality:30,attempts:3}));
app.post('/form', captcha.check, function (req,res,next) { //returns true is valid - the captcha value must sent in the captch field //the error message is in the errDesc key of the captcha object res.send(req.session.captcha.valid); });
npm i [email protected]
Metadata
- BSD
- Whatever
- Yonatan Ellman
- released 10/16/2013