Ques/Help Pulling IP address from user?

C

Chris Grigg

Guest
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...