From 9d99cfad7ed032013a42dfb573d6182eb08a3ba8 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 3 Jun 2012 19:53:21 -0500 Subject: [PATCH] added default to config call to get auth password for backwards compatibility. --- laravel/auth/drivers/eloquent.php | 2 +- laravel/auth/drivers/fluent.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/auth/drivers/eloquent.php b/laravel/auth/drivers/eloquent.php index 1b588db3..8c1c6a80 100644 --- a/laravel/auth/drivers/eloquent.php +++ b/laravel/auth/drivers/eloquent.php @@ -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))) { diff --git a/laravel/auth/drivers/fluent.php b/laravel/auth/drivers/fluent.php index f9d309db..4c23468b 100644 --- a/laravel/auth/drivers/fluent.php +++ b/laravel/auth/drivers/fluent.php @@ -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})) {