summaryrefslogtreecommitdiff
path: root/app/Auth/Database.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-28 09:19:19 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-09-28 09:19:19 -0400
commit9003f830efcdc92865754a5d62e9fd2fea172af7 (patch)
tree52f24c0ac1d0c701b7562087bee33b2a2ad6e281 /app/Auth/Database.php
parent4aa99e949224279ad64be26806e2657e66bf5adf (diff)
Move methods getIpAddress() and getUserAgent() to the Request class
Diffstat (limited to 'app/Auth/Database.php')
-rw-r--r--app/Auth/Database.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Auth/Database.php b/app/Auth/Database.php
index 67881593..47dc8e6e 100644
--- a/app/Auth/Database.php
+++ b/app/Auth/Database.php
@@ -3,6 +3,7 @@
namespace Auth;
use Model\User;
+use Core\Request;
/**
* Database authentication
@@ -40,8 +41,8 @@ class Database extends Base
$this->lastLogin->create(
self::AUTH_NAME,
$user['id'],
- $this->user->getIpAddress(),
- $this->user->getUserAgent()
+ Request::getIpAddress(),
+ Request::getUserAgent()
);
return true;