Commit d1c5aea2 authored by Taylor Otwell's avatar Taylor Otwell

continuing to refactor auth remembrance.

parent 1b057c28
......@@ -87,9 +87,9 @@ class Auth {
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment