Authored by 於志远

sso log

... ... @@ -38,6 +38,8 @@ class Controller_Login extends Controller_Abstract
$data['list'] = Facade_Auth::getAllAuth($result['uid']);
}
return $this->returnJson($result['code'], $data,$result['message']);
}else{
file_put_contents('/tmp/sso-'.date('Y-m-d').'.log', '登录错误['.date('H:i:s').']-账户:'.$account.' 密码:'.$password.' 地区码:'.$area."\n", FILE_APPEND);
}
return $this->returnJson($result['code'], array(), $result['message']);
}
... ...
... ... @@ -606,6 +606,7 @@ class Facade_Auth
//检测口令是否存在
if (!$auth)
{
file_put_contents('/tmp/sso-'.date('Y-m-d').'.log', '登录Facade错误['.date('H:i:s').']-账户:'.$account.' 类型:'.$auth_type.' 地区码:'.$area."\n", FILE_APPEND);
$ret = array('code' => Config_Code::$error['user_not_exist']['code'], 'message' => Config_Code::$error['user_not_exist']['message']);
break ;
}
... ...