7777777-7777777/auth-attempt-limit
Composer 安装命令:
composer require 7777777-7777777/auth-attempt-limit
包简介
Add captcha and login attempts for laravel-admin
README 文档
README
Add captcha and login attempts for laravel-admin
Installation
composer require 7777777-7777777/auth-attempt-limit
Configuration
In the extensions section of the config/admin.php file, add configurations
'extensions' => [
'auth-attempt-limit' => [
// 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).
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-29