← Back to Plugins
  • Password Confirmation (RequirePassword Middleware)

Password Confirmation (RequirePassword Middleware)

Plugin information

by Kaan • 4 stars

Authorization Authentication Admin panel

This feature protects your routes if you have a long session time. The user must re-enter the password after the specified time.

Support

#password-confirmation on Discord

Views

236

License

MIT

Documentation

Installation

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"

Usage

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