Fix token bug in eloquent auth driver.
This commit is contained in:
parent
0993552c0a
commit
6ba37d42d8
|
@ -18,7 +18,7 @@ public function retrieve($token)
|
||||||
{
|
{
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue