Hi, I have setup an amember installation with amember remote. Everything works as expected except i do not see the users login on the remote server in the "Access Log" of the AMember Server (Admin ->User -> Access Log). Is there anything i have overseen? Running 4.3.5. Thank you for your help!
SOLVED. Now th IP is in the Access LOG. With the JSON URL and the API KEY, btu this is ok for me. --- IndexController.php.ORIG 2014-04-24 12:44:51.000000000 +0200 +++ IndexController.php.KMJ 2014-04-28 17:30:30.000000000 +0200 @@ -27,9 +27,17 @@ $pass = $this->_request->getPost('pass'); if ($login && $pass) { - $ret = $this->getInvokeArg('app')->callApi('check-access/by-login-pass', array( + if ( isset($_SERVER['HTTP_CLIENT_IP']) && ! empty($_SERVER['HTTP_CLIENT_IP'])) { + $userip = $_SERVER['HTTP_CLIENT_IP']; + } elseif ( isset($_SERVER['HTTP_X_FORWARDED_FOR']) && ! empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { + $userip = $_SERVER['HTTP_X_FORWARDED_FOR']; + } else { + $userip = (isset($_SERVER['REMOTE_ADDR'])) ? $_SERVER['REMOTE_ADDR'] : '0.0.0.0'; + } + $ret = $this->getInvokeArg('app')->callApi('check-access/by-login-pass-ip', array( 'login' => $login, 'pass' => $pass, + 'ip' => $userip, '_format' => 'json', )); if (!@$ret['ok'])