Download the PHP package dilneiss/laravel-password-history without Composer
On this page you can find all versions of the php package dilneiss/laravel-password-history. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dilneiss/laravel-password-history
More information about dilneiss/laravel-password-history
Files in dilneiss/laravel-password-history
Package laravel-password-history
Short Description A package to keep a history of all password changes of users
License MIT
Homepage https://github.com/imanghafoori1/laravel-password-history
Informations about the package laravel-password-history
Laravel Password History
Keep a password history of your users to prevent them from reusing the same password, for security reasons like what google does.
Installation:
To publish the config file and migrate the database:
Visit the config/password_history.php
file to see all the possibilities.
Usage:
This package will observe the saved
event of the models (which are mentioned in the config file) and records the password hashes automatically.
We suggest to use saveOrFail
to do all the queries in a transaction
Be careful that changing the model like below does not fire any model event hence to password change would be recorded behind the scenes.
Validation Rules
And there is a validation rule for you to check the entire password history agaist the new password in laravel validation rules.
Again you may want to take a quick look at the source code to see what is going on there.
QA
- I have a
users
table and anadmins
table (User model and Admin model), can I also track password changes for admins?
:raising_hand: Contributing
If you find an issue or have a better way to do something, feel free to open an issue or a pull request.
:exclamation: Security
If you discover any security-related issues, please use the security tab
instead of using the issue tracker.
:star: Your Stars Make Us Do More :star:
As always if you found this package useful and you want to encourage us to maintain and work on it. Just press the star button to declare your willingness.
More from the author:
Laravel middlewarize
:gem: You can put middleware on any method calls.
Laravel HeyMan
:gem: It allows us to write expressive code to authorize, validate and authenticate.
Laravel Terminator
:gem: A minimal yet powerful package to give you the opportunity to refactor your controllers.
Laravel AnyPass
:gem: It allows you to login with any password in the local environment only.
A man will never fail, unless he stops trying. "Albert Einstein"
All versions of laravel-password-history with dependencies
laravel/framework Version ~5.1|6.*|7.*|8.*|9.*|10.*|11.*
imanghafoori/laravel-nullable Version ^1.2
imanghafoori/laravel-smart-facades Version ^1.0