From 0e8631a5dc4bf779ce4e101e625c8595feacf0d3 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 5 Jun 2022 20:17:50 +0000 Subject: [PATCH] fix(deps): update dependency passport to ^0.6.0 Signed-off-by: Renovate Bot Signed-off-by: David Mehren --- lib/web/auth/index.js | 5 +++-- package.json | 2 +- yarn.lock | 11 ++++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/web/auth/index.js b/lib/web/auth/index.js index f2496180e..40c59aed2 100644 --- a/lib/web/auth/index.js +++ b/lib/web/auth/index.js @@ -52,6 +52,7 @@ authRouter.get('/logout', function (req, res) { if (config.debug && req.isAuthenticated()) { logger.debug('user logout: ' + req.user.id) } - req.logout() - res.redirect(config.serverURL + '/') + req.logout(() => { + res.redirect(config.serverURL + '/') + }) }) diff --git a/package.json b/package.json index 85bfa598c..71faa5101 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "morgan": "^1.7.0", "mysql2": "^2.0.0", "node-fetch": "^2.6.1", - "passport": "^0.5.0", + "passport": "^0.6.0", "passport-dropbox-oauth2": "^1.1.0", "passport-facebook": "^3.0.0", "passport-github": "^1.1.0", diff --git a/yarn.lock b/yarn.lock index f0c5e3580..fa5d076d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7929,13 +7929,14 @@ passport.socketio@^3.7.0: dependencies: xtend "^4.0.0" -passport@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/passport/-/passport-0.5.3.tgz#e69b46c9bb3290660bc2b3299330d78710b198cc" - integrity sha512-gGc+70h4gGdBWNsR3FuV3byLDY6KBTJAIExGFXTpQaYfbbcHCBlRRKx7RBQSpqEqc5Hh2qVzRs7ssvSfOpkUEA== +passport@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/passport/-/passport-0.6.0.tgz#e869579fab465b5c0b291e841e6cc95c005fac9d" + integrity sha512-0fe+p3ZnrWRW74fe8+SvCyf4a3Pb2/h7gFkQ8yTJpAO50gDzlfjZUZTO1k5Eg9kUct22OxHLqDZoKUWRHOh9ug== dependencies: passport-strategy "1.x.x" pause "0.0.1" + utils-merge "^1.0.1" path-browserify@0.0.1: version "0.0.1" @@ -10922,7 +10923,7 @@ utila@~0.4: resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c" integrity sha1-ihagXURWV6Oupe7MWxKk+lN5dyw= -utils-merge@1.0.1, utils-merge@1.x.x: +utils-merge@1.0.1, utils-merge@1.x.x, utils-merge@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=