Skip to content

Commit ea6f7d1

Browse files
committed
REMOTE_ADDR
1 parent ceb511e commit ea6f7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/controllers/login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function loginMe()
8383

8484
unset($sessionArray['isLoggedIn'], $sessionArray['lastLogin']);
8585

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());
86+
$loginInfo = array("userId"=>$res->userId, "sessionData" => json_encode($sessionArray), "machineIp"=>$_SERVER['REMOTE_ADDR'], "userAgent"=>getBrowserAgent(), "agentString"=>$this->agent->agent_string(), "platform"=>$this->agent->platform());
8787

8888
$this->login_model->lastLogin($loginInfo);
8989

0 commit comments

Comments
 (0)