We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceb511e commit ea6f7d1Copy full SHA for ea6f7d1
application/controllers/login.php
@@ -83,7 +83,7 @@ public function loginMe()
83
84
unset($sessionArray['isLoggedIn'], $sessionArray['lastLogin']);
85
86
- $loginInfo = array("userId"=>$res->userId, "sessionData" => json_encode($sessionArray), "machineIp"=>$this->input->ip_address(), "userAgent"=>getBrowserAgent(), "agentString"=>$this->agent->agent_string(), "platform"=>$this->agent->platform());
+ $loginInfo = array("userId"=>$res->userId, "sessionData" => json_encode($sessionArray), "machineIp"=>$_SERVER['REMOTE_ADDR'], "userAgent"=>getBrowserAgent(), "agentString"=>$this->agent->agent_string(), "platform"=>$this->agent->platform());
87
88
$this->login_model->lastLogin($loginInfo);
89
0 commit comments