Download the PHP package kettasoft/pass-audit without Composer
On this page you can find all versions of the php package kettasoft/pass-audit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kettasoft/pass-audit
More information about kettasoft/pass-audit
Files in kettasoft/pass-audit
Package pass-audit
Short Description PassAudit is a powerful and efficient Laravel package designed to enhance the security of user passwords in your application. This package provides a comprehensive solution to prevent users from reusing their previous passwords, thereby mitigating the risk of unauthorized access.
License MIT
Informations about the package pass-audit
PassAudit
PassAudit is a powerful and efficient Laravel package designed to enhance the security of user passwords in your application. This package provides a comprehensive solution to prevent users from reusing their previous passwords, thereby mitigating the risk of unauthorized access.
Installation
You can install the package via Composer:
Configuration
- Register Service Provider
- Add the service provider to the config/app.php file in the providers array:
Publish Configuration
-
Publish the package configuration file:
- This will create a passaudit.php file in your config directory where you can customize the settings.
Publish Migration
- Publish the migration file:
Then, run the migration:
Usage
Use Trait in User Model
Add the PassAudit
trait to your User
model:
Implement Interface to User Model
- Ensure your
User
model implements theHasPassAuditChecker
:
Use Rule Validation in Request
- You can use the
PassAuditRule
in your request validation to prevent users from reusing their previous passwords:
Customization
You can customize the behavior of the package by modifying the passaudit.php
configuration file. Options include:
- The number of previous passwords to keep track of
- The hashing algorithm to use
Contributing
Thank you for considering contributing to PassAudit! Please read the contributing guide before making a pull request.
License
PassAudit is open-sourced software licensed under the MIT license.