Login 2FA

Guys fast doubt, there's any way to use the Jetstream Authentication 2FA with Filament to login? I did something clean like: In my AdminPanelProvider I removed the
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\Authenticate;
and added
use App\Http\Middleware\Authenticate;
use App\Http\Middleware\Authenticate;
So in my routes/web.php I added:
Route::get('admin/login', function () {
return redirect()->route('login');
})->name('filament.admin.auth.login');
Route::get('admin/login', function () {
return redirect()->route('login');
})->name('filament.admin.auth.login');
Obs: I know there's a composer package that filament supports, but I want to make with own Jetstream.
2 Replies
toeknee
toeknee13mo ago
If you only have one panel just use: Route::redirect('/manage/login', '/login');
Dennis Koch
Dennis Koch13mo ago
You shouldn’t need to remove the Filament middleware. Just remove the login and redirect to your Jetstream login.
Want results from more Discord servers?
Add your server