diff --git a/app/adminapi/validate/LoginValidate.php b/app/adminapi/validate/LoginValidate.php index 7f67aa7e..18d4fe51 100755 --- a/app/adminapi/validate/LoginValidate.php +++ b/app/adminapi/validate/LoginValidate.php @@ -69,9 +69,9 @@ class LoginValidate extends BaseValidate } //后台账号安全机制,连续输错后锁定,防止账号密码暴力破解 - if ($config['login_restrictions'] == 1 && !$adminAccountSafeCache->isSafe()) { - return '密码连续' . $adminAccountSafeCache->count . '次输入错误,请' . $adminAccountSafeCache->minute . '分钟后重试'; - } +// if ($config['login_restrictions'] == 1 && !$adminAccountSafeCache->isSafe()) { +// return '密码连续' . $adminAccountSafeCache->count . '次输入错误,请' . $adminAccountSafeCache->minute . '分钟后重试'; +// } $adminInfo = Admin::where('account', '=', $data['account']) ->field(['password,disable'])