gevorg/http-auth — Issue #6: Error with Express
Author: vwilliam
Created: 2012-01-13 17:42:12+00:00
State: open

After the authentification I get this error:

Express
500 TypeError: Cannot call method 'substr' of undefined
at Object.validate (/node_modules/http-auth/node_modules/htpasswd/lib/htpasswd.js:57:15)
at Basic.isAuthenticated (/node_modules/http-auth/lib/auth/basic.js:73:17)
at /node_modules/http-auth/lib/auth/basic.js:44:28
at callbacks (/root/local/node/lib/node_modules/express/lib/router/index.js:272:11)
at param (/root/local/node/lib/node_modules/express/lib/router/index.js:246:11)
at pass (/root/local/node/lib/node_modules/express/lib/router/index.js:253:5)
at Router._dispatch (/root/local/node/lib/node_modules/express/lib/router/index.js:280:4)
at Object.handle (/root/local/node/lib/node_modules/express/lib/router/index.js:45:10)
at next (/root/local/node/lib/node_modules/express/node_modules/connect/lib/http.js:201:15)
at Object.handle (/node_modules/stylus/lib/middleware.js:188:7)