【发布时间】:2012-03-04 01:27:43
【问题描述】:
我已经从以下链接安装了 node-captcha nodejs 模块...
https://github.com/napa3um/node-captcha
网站上给出的例子如下...
...
var captcha = require('captcha');
...
app.configure(function(){
...
app.use(app.router);
app.use(captcha('/captcha.jpg')); // url for captcha jpeg
app.use(express.static(__dirname + '/public'));
...
app 对象在 express 中使用,但我没有使用 express。
我一直在尝试通过在“http.createServer”函数中调用“captcha('/captcha.jpg')”来让验证码工作,但没有任何反应。
我真的很困惑我是如何使用这个模块的。
【问题讨论】: