superwen / lae-auth-attempts
Add captcha and login attempts for laravel-admin
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
pkg:composer/superwen/lae-auth-attempts
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
- laravel/ui: 4.*
- mews/captcha: 3.*
Requires (Dev)
- phpunit/phpunit: ~6.0
README
Add captcha and login attempts for laravel-admin
Screenshot
Installation
composer require superwen/lae-auth-attempts
Configuration
In the extensions section of the config/admin.php file, add configurations
'extensions' => [
     'auth-attempts' => [
         // set to false if you want to disable this extension
         'enable' => true,
         
         // configuration
         'maxAttempts'  => 5,
         'decayMinutes' => 1,
    ]
]
In the resources/lang/en(example)/validation.php file, add configurations
'captcha'    => 'The :attribute is invalid.',
'attributes' => [
    'captcha' => 'captcha',
],
If you need to modify the captcha configuration, please see mews/captcha
And in the config/captcha.php file, add configurations
'admin' => [
    'length'    => 5,
    'width'     => 120,
    'height'    => 36,
    'quality'   => 90,
],
Usage
Open your login page in your browser
License
Licensed under The MIT License (MIT).
