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/Ldap.php | |
parent | 4aa99e949224279ad64be26806e2657e66bf5adf (diff) |
Move methods getIpAddress() and getUserAgent() to the Request class
Diffstat (limited to 'app/Auth/Ldap.php')
-rw-r--r-- | app/Auth/Ldap.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Auth/Ldap.php b/app/Auth/Ldap.php index 63d495fa..4f20998f 100644 --- a/app/Auth/Ldap.php +++ b/app/Auth/Ldap.php @@ -2,6 +2,8 @@ namespace Auth; +use Core\Request; + /** * LDAP model * @@ -58,8 +60,8 @@ class Ldap extends Base $this->lastLogin->create( self::AUTH_NAME, $user['id'], - $this->user->getIpAddress(), - $this->user->getUserAgent() + Request::getIpAddress(), + Request::getUserAgent() ); return true; |