From e5880841f3c3b6e43858020fc44e61b6faab58b2 Mon Sep 17 00:00:00 2001 From: maxlaverse Date: Fri, 6 Feb 2015 19:59:18 +0100 Subject: [PATCH] Added missing argument Added missing 'next' argument to the '/_session' route callback --- lib/index-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index-api.js b/lib/index-api.js index 65f5b8a1d..c1369bd01 100644 --- a/lib/index-api.js +++ b/lib/index-api.js @@ -100,7 +100,7 @@ module.exports = function(config, auth, storage) { // placeholder 'cause npm require to be authenticated to publish // we do not do any real authentication yet - app.post('/_session', Cookies.express(), function(req, res) { + app.post('/_session', Cookies.express(), function(req, res, next) { res.cookies.set('AuthSession', String(Math.random()), { // npmjs.org sets 10h expire expires: new Date(Date.now() + 10*60*60*1000)