Change-Id: I336b2a39b6871d62b47c9f5f8736bed266c7bc7a
This commit is contained in:
ui_none 2024-08-12 15:53:38 +08:00
commit 08211299d8
1 changed files with 6 additions and 0 deletions

View File

@ -128,6 +128,12 @@ if($act == 'remotelogin') {
$db->query("update tb_user set err_count=err_count+1 where id=".$uid);
echoRs(0, '帐号或密码错误');
}
if (!empty($user['company_id'])) {
$company_info = array();
$company_info = $db->get_one("select * from tb_company where id = ".$user['company_id']);
if ($company_info['enabled']!=1)echoRs(0, $company_info['company_name'].'已被停用,请联系电信管理员!');
}
$db->query("update tb_user set err_count=0 where id=".$uid);
$token = md5(uniqid());