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:
parent
c49b0699c2
commit
e5880841f3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue