Fix token bug in eloquent auth driver.
This commit is contained in:
@@ -18,7 +18,7 @@ class Eloquent extends Driver {
|
|||||||
{
|
{
|
||||||
return $this->model()->find($token);
|
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;
|
return $token;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user