Download the PHP package eightynine/filament-password-expiry without Composer
On this page you can find all versions of the php package eightynine/filament-password-expiry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eightynine/filament-password-expiry
More information about eightynine/filament-password-expiry
Files in eightynine/filament-password-expiry
Package filament-password-expiry
Short Description Allow your users to periodically reset their passwords, to enforce security.
License MIT
Homepage https://github.com/eightynine/filament-password-expiry
Informations about the package filament-password-expiry
Filament Password Expiry
🛠️ Be Part of the Journey
Hi, I'm Eighty Nine. I created password expiry plugin to solve real problems I faced as a developer. Your sponsorship will allow me to dedicate more time to enhancing these tools and helping more people. Become a sponsor and join me in making a positive impact on the developer community.
Allow your users to periodically reset their passwords, to enforce security.
This package allows you to periodically reset your users passwords, to enforce security. In your system you have to force users to change their passwords every 30-90 days. This ensures that even if the user is no longer using the system, other people will not be able to login with their old password.
Installation
You can install the package via composer:
Add the plugin to your panel
-
In you panel's provider, add the plugin as:
- Publish the migrations and config file in order to set up the password expiry table and column.
If you need to, you can publish the translation file using the command:
-
In your authentication class, example
app/Models/User.php
, add the has password expiry trait to the model, the trait checks if all is setup correctly and will throw an exception if not. The trait will update the password_expires_at column when the user is created. - This plugin does not hash passwods when creating a new password. Instead, make sure your password is cast as 'hashed' in your User model
You are all good to go! Now when a user is created, the password_expires_at column will be updated with the current date and time plus the expires_in config value. When the user tries to login, the middleware will check if the password_expires_at column is less than the current date and time. If it is, the user will be redirected to the password expiry page.
This is the contents of the published config file:
Credits
- Eighty Nine
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-password-expiry with dependencies
filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.15.0