Skip to content

Commit

Permalink
Merge pull request #21 from stevebauman/patch-1
Browse files Browse the repository at this point in the history
Pass request through to the callback
  • Loading branch information
taylorotwell authored Sep 10, 2020
2 parents cd8b6aa + cc140f0 commit 1a0b999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/RedirectIfTwoFactorAuthenticatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function handle($request, $next)
protected function validateCredentials($request)
{
if (Fortify::$authenticateUsingCallback) {
return tap(call_user_func(Fortify::$authenticateUsingCallback, $request), function ($user) {
return tap(call_user_func(Fortify::$authenticateUsingCallback, $request), function ($user) use ($request) {
if (! $user) {
$this->throwFailedAuthenticationException($request);
}
Expand Down

0 comments on commit 1a0b999

Please sign in to comment.