Skip to content

Commit 1a0b999

Browse files
authored
Merge pull request #21 from stevebauman/patch-1
Pass request through to the callback
2 parents cd8b6aa + cc140f0 commit 1a0b999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Actions/RedirectIfTwoFactorAuthenticatable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function handle($request, $next)
6666
protected function validateCredentials($request)
6767
{
6868
if (Fortify::$authenticateUsingCallback) {
69-
return tap(call_user_func(Fortify::$authenticateUsingCallback, $request), function ($user) {
69+
return tap(call_user_func(Fortify::$authenticateUsingCallback, $request), function ($user) use ($request) {
7070
if (! $user) {
7171
$this->throwFailedAuthenticationException($request);
7272
}

0 commit comments

Comments
 (0)