This commit is contained in:
unknown 2023-09-04 11:26:46 +08:00
parent 2fc7d3544e
commit 7e52d6b909

View File

@ -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'])