Browse Source

Fix for Fluent ... this should work, I'd think

Colin Viebrock 12 years ago
parent
commit
bb2afdf559
1 changed files with 2 additions and 2 deletions
  1. 2 2
      laravel/auth/drivers/fluent.php

+ 2 - 2
laravel/auth/drivers/fluent.php

@@ -39,7 +39,7 @@ class Fluent extends Driver {
 
 		$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 @@ class Fluent extends Driver {
 		return DB::table($table)->where($username, '=', $value)->first();
 	}
 
-}
+}