Merge pull request #1175 from franzliedke/patch-42

Fix #1140: Auth / Eloquent / Custom password getter
This commit is contained in:
Jason Lewis 2012-09-07 23:49:11 -07:00
commit afbae10345
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public function attempt($arguments = array())
$password_field = Config::get('auth.password', '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'));
}