Merge branch 'master' of https://code.srdcloud.cn/a/fsdxszhpt/yzms into home
Change-Id: I336b2a39b6871d62b47c9f5f8736bed266c7bc7a
This commit is contained in:
commit
08211299d8
|
@ -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