From 56ad9266d39b328d7b9b1415bf07b7929ed66be1 Mon Sep 17 00:00:00 2001 From: xisi Date: Wed, 29 Jan 2014 03:55:51 -0500 Subject: [PATCH] last login time not this login time --- public/include/classes/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/user.class.php b/public/include/classes/user.class.php index e3a543be..b71119ac 100644 --- a/public/include/classes/user.class.php +++ b/public/include/classes/user.class.php @@ -142,10 +142,10 @@ class User extends Base { } if ($this->checkUserPassword($username, $password)) { $uid = $this->getUserId($username); + $lastLoginTime = $this->getLastLogin($uid); $this->updateLoginTimestamp($uid); $getIPAddress = $this->getUserIp($uid); $setIPAddress = $this->setUserIp($uid, $_SERVER['REMOTE_ADDR']); - $lastLoginTime = $this->getLastLogin($uid); $this->createSession($username, $getIPAddress, $lastLoginTime); if ($setIPAddress) { // send a notification if success_login is active