Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laravel-admin-extensions/auth-attempts
Add captcha and login attempts for laravel-admin
https://github.com/laravel-admin-extensions/auth-attempts
Last synced: 6 days ago
JSON representation
Add captcha and login attempts for laravel-admin
- Host: GitHub
- URL: https://github.com/laravel-admin-extensions/auth-attempts
- Owner: laravel-admin-extensions
- License: mit
- Created: 2018-12-07T06:44:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-29T09:40:27.000Z (about 2 years ago)
- Last Synced: 2024-08-28T22:20:18.785Z (2 months ago)
- Language: HTML
- Size: 7.81 KB
- Stars: 14
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - auth-attempts - 登录添加图片验证码 (扩展包 / 工具类扩展包)
README
Captcha and Login attempts for laravel-admin
======
Add captcha and login attempts for laravel-admin### Screenshot
![img](https://github.com/manzhouya/images/blob/master/images/1544165647.jpg?raw=true)### Installation
```
composer require manzhouya/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](https://github.com/mewebstudio/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)](LICENSE).