Benenne den Authenticator und merke denselben Browser für 30 Tage.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
cd79fb99d7
commit
b374335b3a
10 files changed
+241
-4
No files matched your search
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Providers\Filament;
|
||||
|
||||
use App\Auth\StaffAuthenticatorName;
|
||||
use App\Filament\Auth\StaffLogin;
|
||||
use App\Http\Middleware\SanitizeIntendedUrl;
|
||||
use Filament\Auth\MultiFactor\App\AppAuthentication;
|
||||
use Filament\Http\Middleware\Authenticate;
|
||||
@@ -28,14 +30,16 @@ public function panel(Panel $panel): Panel
|
||||
->default()
|
||||
->id('verwaltung')
|
||||
->path('verwaltung')
|
||||
->login()
|
||||
->login(StaffLogin::class)
|
||||
->brandName('Verwaltung')
|
||||
->authGuard('staff')
|
||||
->colors([
|
||||
'primary' => Color::hex('#0F6E56'),
|
||||
])
|
||||
->multiFactorAuthentication([
|
||||
AppAuthentication::make()->recoverable(),
|
||||
AppAuthentication::make()
|
||||
->recoverable()
|
||||
->brandName(StaffAuthenticatorName::current()),
|
||||
], isRequired: true)
|
||||
->discoverResources(in: app_path('Filament/Resources'), for: 'App\Filament\Resources')
|
||||
->discoverPages(in: app_path('Filament/Pages'), for: 'App\Filament\Pages')
|
||||
|
||||
Reference in new issue
Block a user