Download the PHP package mawuekom/laravel-password-history without Composer
On this page you can find all versions of the php package mawuekom/laravel-password-history. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mawuekom/laravel-password-history
More information about mawuekom/laravel-password-history
Files in mawuekom/laravel-password-history
Package laravel-password-history
Short Description Allows you to store users password history
License MIT
Homepage https://github.com/mawuva/laravel-password-history
Informations about the package laravel-password-history
Laravel Password History
This package allows to store users password history and check if the user can use the same for updating or not. Then, you can tell your users when they will be going to create a new password for their accounts if they can use an already used password or not.
Installation
You can install the package via composer:
Usage
Once install, go to config/app.php
to add PasswordHistoryServiceProvider
in providers array
Laravel 5.5 and up Uses package auto discovery feature, no need to edit the config/app.php
file.
-
Service Provider
-
Publish Assets
Or you can publish config
Configuration
- You can change connection for models, models path and there is also a handy pretend feature.
- There are many configurable options which have been extended to be able to configured via
.env
file variables. - Editing the configuration file directly may not needed because of this.
-
See config file: password-history.php.
-
HasPasswordHistory Trait and Contract
To allow your users to use password histries, add HasPasswordHistory
trait in your User Model.
-
PasswordHistoryChecker Service
PasswordHistoryChecker
is a service that help you implement the fact that an user can not use recently used passwords for creating a new one. If he do so, it will be notify that :
Your new password can not be the same as any of your recent passwords. Please choose a new password.
-
When you new user is created, you can store his password
-
When user wants to change his password
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Report bug
Contact me on Twitter @ephraimseddor
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-password-history with dependencies
illuminate/support Version ^8.0|^9.0|^10.0
mawuekom/laravel-model-uuid Version ^2.0