Skip to content

Commit

Permalink
update it
Browse files Browse the repository at this point in the history
  • Loading branch information
acetcom committed Nov 2, 2022
1 parent 406e3f0 commit b374db4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webui/server/routes/auth.js
Expand Up @@ -29,8 +29,10 @@ router.post('/login',
passport.authenticate('local', { successRedirect: '/' }));

router.post('/logout', (req, res) => {
req.logout();
res.redirect('/');
req.logout(function(err) {
if (err) { return next(err); }
res.redirect('/');
});
});

module.exports = router;
module.exports = router;

0 comments on commit b374db4

Please sign in to comment.