Node.js based forum software built for the modern web
fix: #7235
Barış Soner Uşaklı7064fd067846
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex d4bf9620aa..31b59eee93 100644--- a/src/controllers/authentication.js+++ b/src/controllers/authentication.js@@ -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);