Browse Source

fix eloquent auth driver bug.

Taylor Otwell 12 years ago
parent
commit
544821bdeb
1 changed files with 0 additions and 46 deletions
  1. 0 46
      laravel/auth/drivers/eloquent.php

+ 0 - 46
laravel/auth/drivers/eloquent.php

@@ -18,29 +18,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.
 	 *
@@ -66,29 +43,6 @@ class Eloquent extends Driver {
 		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.
 	 *