supply callback to req.session.destroy

This commit is contained in:
Barış Soner Uşaklı
2017-11-02 18:21:25 -04:00
parent 8810f0f2a9
commit 662f92a4a8

View File

@@ -418,8 +418,11 @@ authenticationController.logout = function (req, res, next) {
},
function (next) {
req.logout();
req.session.destroy();
req.session.destroy(function (err) {
next(err);
});
},
function (next) {
user.setUserField(req.uid, 'lastonline', Date.now() - 300000, next);
},
function (next) {