Skip to content

Commit b72781c

Browse files
committed
fix: bug
1 parent 76a8fc8 commit b72781c

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "yexk/login-google-captcha",
2+
"name": "yexk/dcat-login-google-captcha",
33
"alias": "login captcha",
44
"description": "Dcat-admin login Google Captcha extension.",
55
"type": "library",

resources/lang/en/captcha.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
return [
44
'captcha' => 'Google Captcha',
55
'enter_captcha' => 'Pleace enter a Google captcha',
6+
'captcha_error' => 'Google auth failed!',
67
];

resources/lang/zh_CN/captcha.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
return [
44
'captcha' => 'Google验证码',
55
'enter_captcha' => '请输入Google验证码',
6+
'captcha_error' => 'Google验证码失败!',
67
];

src/ServiceProvider.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,13 @@ class ServiceProvider extends BaseServiceProvider
2020
{
2121
use HasFormResponse;
2222

23-
/**
24-
* 路由过滤.
25-
*/
26-
protected $exceptRoutes = [
27-
'auth' => 'lake-login/captcha',
28-
'permission' => 'lake-login/captcha',
29-
];
30-
3123
/**
3224
* {@inheritdoc}
3325
*/
3426
public function init()
3527
{
3628
parent::init();
3729

38-
// 设置别名
39-
if (! class_exists('LakeLoginCaptcha')) {
40-
class_alias(__CLASS__, 'LakeLoginCaptcha');
41-
}
42-
4330
Admin::booting(function () {
4431
$except = admin_base_path('auth/login');
4532
if ($except !== '/') {

0 commit comments

Comments
 (0)