Skip to content

Laravel Lockout Account. Lock user account automaticaly if login fails with json.

License

Notifications You must be signed in to change notification settings

irfaardy/lockout-account

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔒 JSON Lockout Account for Laravel

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