Skip to content

Commit 9d99cfa

Browse files
committed
added default to config call to get auth password for backwards compatibility.
1 parent dda3a81 commit 9d99cfa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

laravel/auth/drivers/eloquent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function attempt($arguments = array())
3535
// log the user into the application and remember them if asked.
3636
$password = $arguments['password'];
3737

38-
$password_field = Config::get('auth.password');
38+
$password_field = Config::get('auth.password', 'password');
3939

4040
if ( ! is_null($user) and Hash::check($password, $user->get_attribute($password_field)))
4141
{

laravel/auth/drivers/fluent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function attempt($arguments = array())
3737
// log the user into the application and remember them if asked.
3838
$password = $arguments['password'];
3939

40-
$password_field = Config::get('auth.password');
40+
$password_field = Config::get('auth.password', 'password');
4141

4242
if ( ! is_null($user) and Hash::check($password, $user->{$password_field}))
4343
{

0 commit comments

Comments
 (0)