Skip to content

Commit

Permalink
fix(core): logout route with new passport
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Jul 8, 2022
1 parent 5044b75 commit 1280521
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/controllers/main.js
Expand Up @@ -192,9 +192,10 @@ mainController.l2AuthPost = function (req, res, next) {
mainController.logout = function (req, res) {
req.session.l2auth = null
req.session.destroy(function () {
req.logout()
res.clearCookie('connect.sid')
return res.redirect('/')
req.logout(function () {
res.clearCookie('connect.sid')
return res.redirect('/')
})
})
}

Expand Down

0 comments on commit 1280521

Please sign in to comment.