Commit 544821bd by Taylor Otwell

fix eloquent auth driver bug.

parent 2dd8b242
...@@ -19,29 +19,6 @@ class Eloquent extends Driver { ...@@ -19,29 +19,6 @@ class Eloquent extends Driver {
} }
/** /**
* Login the user assigned to the given token.
*
* The token is typically a numeric ID for the user.
*
* @param mixed $token
* @param bool $remember
* @return bool
*/
public function login($token, $remember = false)
{
// if the token is an Eloquent model get the primary key
if ($token instanceof \Eloquent) $token = $token->get_key();
$this->token = $token;
$this->store($token);
if ($remember) $this->remember($token);
return true;
}
/**
* Attempt to log a user into the application. * Attempt to log a user into the application.
* *
* @param array $arguments * @param array $arguments
...@@ -67,29 +44,6 @@ class Eloquent extends Driver { ...@@ -67,29 +44,6 @@ class Eloquent extends Driver {
} }
/** /**
* Login the user assigned to the given token.
*
* The token is typically a numeric ID for the user.
*
* @param mixed $token
* @param bool $remember
* @return bool
*/
public function login($token, $remember = false)
{
// if the token is an Eloquent model get the primary key
if ($token instanceof \Eloquent) $token = $token->get_key();
$this->token = $token;
$this->store($token);
if ($remember) $this->remember($token);
return true;
}
/**
* Get a fresh model instance. * Get a fresh model instance.
* *
* @return Eloquent * @return Eloquent
......
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