From fedc9fc45e0629cb524a5a119fbcd62315e9d3a6 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 12 Sep 2012 14:48:07 +0300 Subject: [PATCH] Fix hardcoded "id" column 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 35fe07d2..fb401d68 100644 --- a/laravel/auth/drivers/eloquent.php +++ b/laravel/auth/drivers/eloquent.php @@ -52,7 +52,7 @@ public function attempt($arguments = array()) if ( ! is_null($user) and Hash::check($password, $user->{$password_field})) { - return $this->login($user->id, array_get($arguments, 'remember')); + return $this->login($user->get_key(), array_get($arguments, 'remember')); } return false;