停用公司app不允许登录
This commit is contained in:
parent
9c47bf2ada
commit
ad8bc759b1
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue