diff --git a/src/Http/Middleware/Force2Factor.php b/src/Http/Middleware/Force2Factor.php index 98020b1..0f149e5 100644 --- a/src/Http/Middleware/Force2Factor.php +++ b/src/Http/Middleware/Force2Factor.php @@ -16,9 +16,9 @@ public function handle(Request $request, Closure $next): mixed } if (! $user->two_factor_confirmed_at) { - // TODO: Redirect to the two-factor page. + return redirect()->to(route('filament.' . filament()->getCurrentPanel()->getId() . '.pages.two-factor')); } return $next($request); } -} +} \ No newline at end of file