Fix token bug in eloquent auth driver.

This commit is contained in:
Taylor Otwell
2013-01-05 13:28:52 -06:00
parent 0993552c0a
commit 6ba37d42d8

View File

@@ -18,7 +18,7 @@ class Eloquent extends Driver {
{
return $this->model()->find($token);
}
else if (get_class($token) == Config::get('auth.model'))
else if (is_object($token) and get_class($token) == Config::get('auth.model'))
{
return $token;
}