summaryrefslogtreecommitdiff
path: root/app/Auth/Database.php
diff options
context:
space:
mode:
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;