From 13e624cc86a92f45fd3442b8043b1789873f2e41 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 21 Sep 2016 17:09:30 +0300 Subject: [PATCH] on login update lastonline --- src/controllers/authentication.js | 3 +++ 1 file changed, 3 insertions(+) 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) {