From 6ba37d42d8a1ce757fd65af253b52e9ddd52a451 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 5 Jan 2013 13:28:52 -0600 Subject: [PATCH] Fix token bug in eloquent auth driver. --- laravel/auth/drivers/eloquent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/auth/drivers/eloquent.php b/laravel/auth/drivers/eloquent.php index fb401d68..3bb8a5ef 100644 --- a/laravel/auth/drivers/eloquent.php +++ b/laravel/auth/drivers/eloquent.php @@ -18,7 +18,7 @@ public function retrieve($token) { return $this->model()->find($token); } - else if (get_class($token) == Config::get('auth.model')) + else if (is_object($token) and get_class($token) == Config::get('auth.model')) { return $token; }