Pulling IP address from user?

Status
This content is read-only, or is not open for further replies.

Chris Grigg

Guest
offline
Version 2.3.7 XF

Im trying to get my addon (FraudClient) to check for and submit the IP address of a user when checking and reporting to my database.

Code:

Code:
public function checkUser(\XF\Entity\User $user)
    {
        $app = \XF::app();
        $client = $app->http()->client();
        $params = [
            'headers' => [
                'accept' => 'application/json',
                'content-type' => 'application/json',
            ],
            'json' => [...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom