mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
@@ -183,6 +183,13 @@ var path = require('path'),
|
||||
// Authentication Routes
|
||||
auth.initialize(app);
|
||||
|
||||
app.use(function(req, res, next) {
|
||||
if(req.user) {
|
||||
user.setUserField(req.user.uid, 'lastonline', Date.now());
|
||||
}
|
||||
next();
|
||||
})
|
||||
|
||||
next();
|
||||
},
|
||||
function(next) {
|
||||
|
||||
Reference in New Issue
Block a user