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/Google.php | |
parent | 4aa99e949224279ad64be26806e2657e66bf5adf (diff) |
Move methods getIpAddress() and getUserAgent() to the Request class
Diffstat (limited to 'app/Auth/Google.php')
-rw-r--r-- | app/Auth/Google.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Auth/Google.php b/app/Auth/Google.php index aeeab563..2bed5b09 100644 --- a/app/Auth/Google.php +++ b/app/Auth/Google.php @@ -4,6 +4,7 @@ namespace Auth; require __DIR__.'/../../vendor/OAuth/bootstrap.php'; +use Core\Request; use OAuth\Common\Storage\Session; use OAuth\Common\Consumer\Credentials; use OAuth\Common\Http\Uri\UriFactory; @@ -45,8 +46,8 @@ class Google extends Base $this->lastLogin->create( self::AUTH_NAME, $user['id'], - $this->user->getIpAddress(), - $this->user->getUserAgent() + Request::getIpAddress(), + Request::getUserAgent() ); return true; |