mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00
fix(deps): update dependency passport to ^0.6.0
Signed-off-by: Renovate Bot <bot@renovateapp.com> Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
a58f854295
commit
0e8631a5dc
3 changed files with 10 additions and 8 deletions
|
@ -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 + '/')
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue