This commit is contained in:
Barış Soner Uşaklı
2019-01-24 15:14:12 -05:00
parent ef0e780896
commit 7064fd0678

View File

@@ -478,7 +478,10 @@ authenticationController.logout = function (req, res, next) {
});
},
function (next) {
user.setUserField(req.uid, 'lastonline', Date.now() - 300000, next);
user.setUserField(req.uid, 'lastonline', Date.now() - (meta.config.onlineCutoff * 60000), next);
},
function (next) {
db.sortedSetRemove('users:online', req.uid, next);
},
function (next) {
plugins.fireHook('static:user.loggedOut', { req: req, res: res, uid: req.uid }, next);