continuing to refactor auth remembrance.

This commit is contained in:
Taylor Otwell 2011-10-09 23:43:31 -05:00
parent 1b057c2854
commit d1c5aea26b
1 changed files with 2 additions and 2 deletions

View File

@ -87,9 +87,9 @@ protected static function recall($cookie)
if (count($cookie) < 2) return; 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); static::login($user);
} }