Merge pull request #1211 from franzliedke/patch-45
[Auth] Fix hardcoded "id" column in Eloquent driver (#1207)
This commit is contained in:
commit
d164cca4aa
|
@ -52,7 +52,7 @@ public function attempt($arguments = array())
|
||||||
|
|
||||||
if ( ! is_null($user) and Hash::check($password, $user->{$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->get_key(), array_get($arguments, 'remember'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue