diff options
Diffstat (limited to 'app/Auth/GitHub.php')
-rw-r--r-- | app/Auth/GitHub.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Auth/GitHub.php b/app/Auth/GitHub.php index 0910367a..096d4101 100644 --- a/app/Auth/GitHub.php +++ b/app/Auth/GitHub.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; @@ -44,8 +45,8 @@ class GitHub extends Base $this->lastLogin->create( self::AUTH_NAME, $user['id'], - $this->user->getIpAddress(), - $this->user->getUserAgent() + Request::getIpAddress(), + Request::getUserAgent() ); return true; |