Browse Source

updated auth::login to use get_key()

Shawn McCool 12 years ago
parent
commit
3c43f5fac4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/auth/drivers/driver.php

+ 1 - 1
laravel/auth/drivers/driver.php

@@ -109,7 +109,7 @@ abstract class Driver {
 	{
 	{
 		// if the token is an Eloquent model
 		// if the token is an Eloquent model
 		// set the token from the id field
 		// set the token from the id field
-		if ($token instanceof Eloquent) $token = $token->id;
+		if ($token instanceof Eloquent) $token = $token->get_key();
 
 
 		$this->token = $token;
 		$this->token = $token;