aa
This commit is contained in:
parent
2fc7d3544e
commit
7e52d6b909
@ -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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user