kaantanis / filament-password-confirmation
此包已被废弃且不再维护。没有建议的替代包。
纤维密码确认
v1.0.3
2022-11-14 07:01 UTC
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
纤维密码确认
艺术
此包允许您将密码确认中间件附加到您的路由上。如果用户会话过期,用户将被重定向到密码确认页面。
此功能可以保护您的路由,如果您有较长的会话时间。
注意:通过 Illuminate\Auth\Middleware\RequirePassword
中间件扩展。
安装
您可以通过composer安装此包
composer require kaantanis/filament-password-confirmation
您可以使用以下命令发布配置文件
php artisan vendor:publish --tag="filament-password-confirmation-config"
可选地,您可以使用以下命令发布视图
php artisan vendor:publish --tag="filament-password-confirmation-views"
使用
打开您的filament.php配置文件并添加中间件。
'middleware' => [ 'auth' => [ ... \KaanTanis\FilamentPasswordConfirmation\Http\Middleware\PasswordConfirmationMiddleware::class ], ]
配置
超时时间可以在配置文件中配置。默认为10800秒。
'timeout' => 10800 // 3 hours
变更日志
请参阅CHANGELOG了解最近更改的更多信息。
路线图
- 不支持POST请求。如果用户会话过期,用户将被重定向到密码确认页面(或模态框)。
- 添加更多语言
- 添加更多文档
- 即使会话未过期,也对关键操作进行确认
- 对特定资源和动作进行确认
- 从模态框进行确认
- 如果会话过期,自动重定向/打开模态框
许可证
MIT许可证(MIT)。有关更多信息,请参阅许可证文件。