kaantanis / filament-password-confirmation
Filament Password Confirmation
Requires
- php: ^8.1
- filament/filament: ^2.0
- illuminate/contracts: ^9.0
- livewire/livewire: ^2.10
- spatie/laravel-package-tools: ^1.13.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- pestphp/pest-plugin-livewire: ^1.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-06-29 23:32:19 UTC
README
Filament Password Confirmation
Art
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.
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 ], ]
Configuration
Time out can be configured in the config file. Default is 10800 seconds.
'timeout' => 10800 // 3 hours
Changelog
Please see CHANGELOG for more information on what has changed recently.
Roadmap
- Not working on post request. If user time is expired, the user will be redirected (or modal) to a password confirmation page.
- Add more languages
- Add more documentation
- Get confirmation on critical actions even if the session doesn't expire
- Confirmation for specific resources and actions
- Confirmation from modal
- Auto redirect/open modal if session is expired
License
The MIT License (MIT). Please see License File for more information.