Skip to content

Commit

Permalink
removed user id from json
Browse files Browse the repository at this point in the history
  • Loading branch information
kishor10d committed Jan 3, 2018
1 parent ea6f7d1 commit cd01bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function loginMe()

$this->session->set_userdata($sessionArray);

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

$loginInfo = array("userId"=>$res->userId, "sessionData" => json_encode($sessionArray), "machineIp"=>$_SERVER['REMOTE_ADDR'], "userAgent"=>getBrowserAgent(), "agentString"=>$this->agent->agent_string(), "platform"=>$this->agent->platform());

Expand Down

0 comments on commit cd01bee

Please sign in to comment.