mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
when logging out, end the express session
This commit is contained in:
@@ -307,6 +307,7 @@ authenticationController.logout = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
req.logout();
|
||||
req.session.destroy();
|
||||
|
||||
user.setUserField(uid, 'lastonline', Date.now() - 300000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user