Open asgomda opened 2 years ago
The logout route was previously:
router.get('/logout', (req, res, next) => { req.logout(); res.redirect('/') })
should be modified to:
router.get('/logout', (req, res, next) => { req.logout((error)=>{ if (error) {return next(error)} res.redirect('/') }); })
The logout route was previously:
router.get('/logout', (req, res, next) => { req.logout(); res.redirect('/') })
should be modified to:
router.get('/logout', (req, res, next) => { req.logout((error)=>{ if (error) {return next(error)} res.redirect('/') });
})