From 9003f830efcdc92865754a5d62e9fd2fea172af7 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 28 Sep 2014 09:19:19 -0400 Subject: Move methods getIpAddress() and getUserAgent() to the Request class --- app/Auth/Database.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/Auth/Database.php') 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; -- cgit v1.2.3