From bb2afdf559842c05b678e079bd92b28a8ad3dd58 Mon Sep 17 00:00:00 2001 From: Colin Viebrock Date: Wed, 30 May 2012 11:40:21 -0500 Subject: [PATCH] Fix for Fluent ... this should work, I'd think --- laravel/auth/drivers/fluent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/auth/drivers/fluent.php b/laravel/auth/drivers/fluent.php index 026a437d..f9d309db 100644 --- a/laravel/auth/drivers/fluent.php +++ b/laravel/auth/drivers/fluent.php @@ -39,7 +39,7 @@ public function attempt($arguments = array()) $password_field = Config::get('auth.password'); - if ( ! is_null($user) and Hash::check($password, $user->get_attribute($password_field))) + if ( ! is_null($user) and Hash::check($password, $user->{$password_field})) { return $this->login($user->id, array_get($arguments, 'remember')); } @@ -62,4 +62,4 @@ protected function get_user($value) return DB::table($table)->where($username, '=', $value)->first(); } -} \ No newline at end of file +}