-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME.en.md
61 lines (47 loc) · 1.47 KB
/
README.en.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Sliding captcha for Laravel-Admin auth, Multiple platform support
======
Sliding captcha for Laravel-Admin auth, Multiple platform support
**For more details, please read [README.md](README.md)**
### Screen Shot

### Installation
```
composer require asundust/auth-captcha
```
### Configuration
- In the extensions section of the `config/admin.php` file, add configurations
```
'extensions' => [
'auth-captcha' => [
// set to false if you want to disable this extension
'enable' => true,
'provider' => 'xxxxxx',
// style of captcha
'style' => 'xxxxxx',
// configuration
'appid' => env('AUTH_CAPTCHA_APPID'),
'secret' => env('AUTH_CAPTCHA_SECRET'),
'secret_key' => env('AUTH_CAPTCHA_SECRET_KEY'),
'ext_config' => [],
],
]
```
- In the `.env` file, add configurations
```
AUTH_CAPTCHA_APPID=xxxxxx
AUTH_CAPTCHA_SECRET=xxxxxx
```
- In the `resources/lang/zh-CN(example).json` file, add configurations
```
"Sliding validation failed. Please try again.": "滑动验证未通过,请重试。",
"Please complete the validation.": "请完成验证。",
"Config Error.": "配置错误。"
```
### Usage
Open your login page in your browser
### Notices for upgrading
[UPGRADE.md](UPGRADE.md)
### Change Log
[CHANGE_LOG.md](CHANGE_LOG.md)
### License
[The MIT License (MIT)](https://opensource.org/licenses/MIT)