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

This commit is contained in:
Taylor Otwell 2012-06-03 19:53:21 -05:00
parent dda3a81c10
commit 9d99cfad7e
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ public function attempt($arguments = array())
// 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)))
{

View File

@ -37,7 +37,7 @@ public function attempt($arguments = array())
// 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}))
{