feat: add two-factor authentication support and related configurations

This commit is contained in:
2026-07-24 12:59:10 +02:00
parent 54345e621c
commit 235d5f646c
27 changed files with 2608 additions and 374 deletions

17
config/fortify.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
use Laravel\Fortify\Features;
return [
'guard' => 'web',
'username' => 'email',
'views' => false,
'home' => config('auth-ui.redirects.login', '/dashboard'),
'features' => config('auth-ui.features.two_factor')
? [
Features::twoFactorAuthentication([
'confirm' => true,
]),
]
: [],
];