Commit 8e145e6c authored by Franz Liedke's avatar Franz Liedke

Make Eloquent auth driver respect a model's custom password getter.

This fixes #1140.
parent ec13efb7
...@@ -50,7 +50,7 @@ class Eloquent extends Driver { ...@@ -50,7 +50,7 @@ class Eloquent extends Driver {
$password_field = Config::get('auth.password', 'password'); $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')); return $this->login($user->id, array_get($arguments, 'remember'));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment