From d1c5aea26bc32f364b631e47409ae9b5741d414a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 9 Oct 2011 23:43:31 -0500 Subject: [PATCH] continuing to refactor auth remembrance. --- laravel/security/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/security/auth.php b/laravel/security/auth.php index abeb5c72..2adf44cc 100644 --- a/laravel/security/auth.php +++ b/laravel/security/auth.php @@ -87,9 +87,9 @@ protected static function recall($cookie) if (count($cookie) < 2) return; - list($id, $username) = array($cookie[0], $cookie[1]); + list($id, $username, $config) = array($cookie[0], $cookie[1], Config::get('auth')); - if ( ! is_null($user = call_user_func(Config::get('auth.user'), $id)) and $user->{Config::get('auth.username')} === $username) + if ( ! is_null($user = call_user_func($config['user'], $id)) and $user->{$config['username']} === $username) { static::login($user); }