From 71d29b71f9b6d0b4712f227c912635a960ea717d Mon Sep 17 00:00:00 2001 From: Cristian Tabacitu Date: Wed, 16 Sep 2020 07:12:11 -0400 Subject: [PATCH 1/2] fix password broker in Laravel 8 --- src/app/Library/Auth/PasswordBroker.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/Library/Auth/PasswordBroker.php b/src/app/Library/Auth/PasswordBroker.php index 0edcd1b885..94352d2209 100644 --- a/src/app/Library/Auth/PasswordBroker.php +++ b/src/app/Library/Auth/PasswordBroker.php @@ -2,6 +2,7 @@ namespace Backpack\CRUD\app\Library\Auth; +use Closure; use Backpack\CRUD\app\Notifications\ResetPasswordNotification; use Illuminate\Auth\Passwords\PasswordBroker as OriginalPasswordBroker; @@ -17,7 +18,7 @@ class PasswordBroker extends OriginalPasswordBroker * @param array $credentials * @return string */ - public function sendResetLink(array $credentials) + public function sendResetLink(array $credentials, Closure $callback = null) { // First we will check to see if we found a user at the given credentials and // if we did not we will redirect back to this current URI with a piece of From 365f973d3c32511bce686763ad3e48cf063fc6a1 Mon Sep 17 00:00:00 2001 From: Cristian Tabacitu Date: Wed, 16 Sep 2020 11:12:34 +0000 Subject: [PATCH 2/2] Apply fixes from StyleCI [ci skip] [skip ci] --- src/app/Library/Auth/PasswordBroker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Library/Auth/PasswordBroker.php b/src/app/Library/Auth/PasswordBroker.php index 94352d2209..e063c14539 100644 --- a/src/app/Library/Auth/PasswordBroker.php +++ b/src/app/Library/Auth/PasswordBroker.php @@ -2,8 +2,8 @@ namespace Backpack\CRUD\app\Library\Auth; -use Closure; use Backpack\CRUD\app\Notifications\ResetPasswordNotification; +use Closure; use Illuminate\Auth\Passwords\PasswordBroker as OriginalPasswordBroker; /**