Commit 0f5de55d authored by Franz Liedke's avatar Franz Liedke

Fix variable name in retrieve() method for Eloquent auth driver.

parent 9572329c
......@@ -14,13 +14,13 @@ class Eloquent extends Driver {
{
// We return an object here either if the passed token is an integer (ID)
// or if we are passed a model object of the correct type
if (filter_var($id, FILTER_VALIDATE_INT) !== false)
if (filter_var($token, FILTER_VALIDATE_INT) !== false)
{
return $this->model()->find($id);
return $this->model()->find($token);
}
else if (get_class($id) == Config::get('auth.model'))
else if (get_class($token) == Config::get('auth.model'))
{
return $id;
return $token;
}
}
......
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