irfa/lockout

"Lock account if failed login"

v1.0.3 2020-07-05 19:14 UTC

This package is auto-updated.

Last update: 2024-07-16 22:18:53 UTC


README

Code Climate Scrutinizer Code Quality Build Status Support me Latest Stable Version PHP Composer Buy Me A Coffee

Logo

This package is useful for locking an account if someone tries to log into your account, this package can be implemented into the admin dashboard login, information system, cloud, etc.

🛠️ Installation with Composer

composer require irfa/lockout

You can get Composer here

🛠️ Laravel Setup

1. Add to config/app.php

'providers' => [
      	 ....
         Irfa\Lockout\LockoutAccountServiceProvider::class, 
     ];

2. Add to config/app.php

'aliases' => [
         ....
    	'Lockout' => Irfa\Lockout\Facades\Lockout::class,
],

3. Publish Vendor

php artisan vendor:publish --tag=lockout-account

Open .env file and add this line (optional)

....
LOGIN_ATTEMPS=3
LOGGING=true
    

Usage:

https://github.com/irfaardy/lockout-account/wiki/Usage

How to Contributing

  1. Fork it (https://github.com/irfaardy/lockout-account/fork)
  2. Commit your changes (git commit -m 'Add some Feature')
  3. Push to the branch (git push origin version)
  4. Create a new Pull Request

Issue

If you found issues or bug please create new issues here https://github.com/irfaardy/lockout-account/issues/new

LICENSE
GitHub license