Commit 9d99cfad authored by Taylor Otwell's avatar Taylor Otwell

added default to config call to get auth password for backwards compatibility.

parent dda3a81c
......@@ -35,7 +35,7 @@ class Eloquent extends Driver {
// log the user into the application and remember them if asked.
$password = $arguments['password'];
$password_field = Config::get('auth.password');
$password_field = Config::get('auth.password', 'password');
if ( ! is_null($user) and Hash::check($password, $user->get_attribute($password_field)))
{
......
......@@ -37,7 +37,7 @@ class Fluent extends Driver {
// log the user into the application and remember them if asked.
$password = $arguments['password'];
$password_field = Config::get('auth.password');
$password_field = Config::get('auth.password', 'password');
if ( ! is_null($user) and Hash::check($password, $user->{$password_field}))
{
......
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