feat: add two-factor authentication support and related configurations
This commit is contained in:
17
config/fortify.php
Normal file
17
config/fortify.php
Normal 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,
|
||||
]),
|
||||
]
|
||||
: [],
|
||||
];
|
||||
Reference in New Issue
Block a user