mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
user activity counter (bug present where all users register as same session? this isn't good....)
This commit is contained in:
@@ -43,6 +43,9 @@ var express = require('express'),
|
||||
if (global.uid !== null) console.log('info: [Auth] uid ' + global.uid + ' found. Welcome back.');
|
||||
else console.log('info: [Auth] No login session found.');
|
||||
});
|
||||
|
||||
// (Re-)register the session as active
|
||||
global.modules.user.active.register(req.sessionID);
|
||||
} else {
|
||||
console.log('info: [Auth] Ping from uid ' + global.uid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user