Skip to content

Commit 67250b6

Browse files
authored
Merge pull request #74 from ashleyshenton/fix/set-intended-url
[2.x] Set the intended URL before redirecting to the challenge
2 parents d55b63d + 327596b commit 67250b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/TwoFactorChallenge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function handle(Request $request, Closure $next): mixed
1919
! $user?->isTwoFactorChallengePassed() &&
2020
! $user?->passkeyAuthenticated()
2121
) {
22-
return redirect()->to($this->twoFactorChallengeRoute());
22+
return redirect()->guest($this->twoFactorChallengeRoute());
2323
}
2424

2525
return $next($request);

0 commit comments

Comments
 (0)