停用公司app不允许登录

This commit is contained in:
fengjh5 2024-08-08 17:44:44 +08:00
parent 9c47bf2ada
commit ad8bc759b1
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); $db->query("update tb_user set err_count=err_count+1 where id=".$uid);
echoRs(0, '帐号或密码错误'); 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); $db->query("update tb_user set err_count=0 where id=".$uid);
$token = md5(uniqid()); $token = md5(uniqid());