diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-28 09:19:19 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-28 09:19:19 -0400 |
commit | 9003f830efcdc92865754a5d62e9fd2fea172af7 (patch) | |
tree | 52f24c0ac1d0c701b7562087bee33b2a2ad6e281 /app/Auth/ReverseProxy.php | |
parent | 4aa99e949224279ad64be26806e2657e66bf5adf (diff) |
Move methods getIpAddress() and getUserAgent() to the Request class
Diffstat (limited to 'app/Auth/ReverseProxy.php')
-rw-r--r-- | app/Auth/ReverseProxy.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Auth/ReverseProxy.php b/app/Auth/ReverseProxy.php index 6880f5fa..5aca881a 100644 --- a/app/Auth/ReverseProxy.php +++ b/app/Auth/ReverseProxy.php @@ -2,6 +2,7 @@ namespace Auth; +use Core\Request; use Core\Security; /** @@ -44,8 +45,8 @@ class ReverseProxy extends Base $this->lastLogin->create( self::AUTH_NAME, $user['id'], - $this->user->getIpAddress(), - $this->user->getUserAgent() + Request::getIpAddress(), + Request::getUserAgent() ); return true; |