From 544821bdebdc2edb0d5bfcb208f30d049f3739f4 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 30 May 2012 13:46:20 -0500 Subject: [PATCH] fix eloquent auth driver bug. --- laravel/auth/drivers/eloquent.php | 46 ------------------------------- 1 file changed, 46 deletions(-) diff --git a/laravel/auth/drivers/eloquent.php b/laravel/auth/drivers/eloquent.php index 6321c358..98b815a6 100644 --- a/laravel/auth/drivers/eloquent.php +++ b/laravel/auth/drivers/eloquent.php @@ -18,29 +18,6 @@ public function retrieve($id) } } - /** - * 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. * @@ -66,29 +43,6 @@ public function attempt($arguments = array()) return false; } - /** - * 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. *