diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index ce2c652b6a..43707bfccd 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -322,6 +322,9 @@ authenticationController.onSuccessfulLogin = function(req, uid, callback) { }, function (next) { db.setObjectField('uid:' + uid + 'sessionUUID:sessionId', uuid, req.sessionID, next); + }, + function (next) { + user.updateLastOnlineTime(uid, next); } ], function(err) { if (err) {