0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

Added missing argument

Added missing 'next' argument to the '/_session' route callback
This commit is contained in:
maxlaverse 2015-02-06 19:59:18 +01:00
parent c49b0699c2
commit e5880841f3

View file

@ -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)