Changes
This commit is contained in:
@@ -8,6 +8,9 @@ use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Laravel\Fortify\Events\TwoFactorAuthenticationChallenged;
|
||||
use Laravel\Fortify\Events\TwoFactorAuthenticationEnabled;
|
||||
use Vormkracht10\TwoFactorAuth\Listeners\SendTwoFactorCodeListener;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -20,6 +23,12 @@ class EventServiceProvider extends ServiceProvider
|
||||
Registered::class => [
|
||||
SendEmailVerificationNotification::class,
|
||||
],
|
||||
TwoFactorAuthenticationChallenged::class => [
|
||||
SendTwoFactorCodeListener::class,
|
||||
],
|
||||
TwoFactorAuthenticationEnabled::class => [
|
||||
SendTwoFactorCodeListener::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,6 +20,7 @@ use Illuminate\Session\Middleware\AuthenticateSession;
|
||||
use Illuminate\Session\Middleware\StartSession;
|
||||
use Illuminate\View\Middleware\ShareErrorsFromSession;
|
||||
use ShuvroRoy\FilamentSpatieLaravelBackup\FilamentSpatieLaravelBackupPlugin;
|
||||
use Vormkracht10\TwoFactorAuth\TwoFactorAuthPlugin;
|
||||
|
||||
class AdminPanelProvider extends PanelProvider
|
||||
|
||||
@@ -64,6 +65,7 @@ class AdminPanelProvider extends PanelProvider
|
||||
\BezhanSalleh\FilamentShield\FilamentShieldPlugin::make(),
|
||||
FilamentSpatieLaravelBackupPlugin::make()->usingPage(Backups::class),
|
||||
CheckpointPlugin::make(),
|
||||
TwoFactorAuthPlugin::make()->forced(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user