Downloads
Stars
Version
This package allows you to attach a middleware for password confirmation to your routes. If user time is expired, the user will be redirected to a password confirmation page.
This feature protects your routes if you have a long session time.
Note: Exdends via Illuminate\Auth\Middleware\RequirePassword
middleware.
You can install the package via composer:
composer require kaantanis/filament-password-confirmation
You can publish the config file with:
php artisan vendor:publish --tag="filament-password-confirmation-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-password-confirmation-views"
Open your filament.php config file and add the middleware.
'middleware' => [
'auth' => [
...
\KaanTanis\FilamentPasswordConfirmation\Http\Middleware\PasswordConfirmationMiddleware::class
],
]
Time out can be configured in the config file. Default is 10800 seconds.
'timeout' => 10800 // 3 hours
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.