protected function checkOtp() { if (IsModuleInstalled('intranet')) { //OTP not used in Bitrix Intranet Portal return; } if (CSecurityUser::isActive()) { $dbUser = $this->getAdminUserList(); while ($user = $dbUser->fetch()) { $userInfo = CSecurityUser::getSecurityUserInfo($user['ID']); if (!$userInfo) { $this->addUnformattedDetailError('SECURITY_SITE_CHECKER_ADMIN_OTP_NOT_USED', CSecurityCriticalLevel::MIDDLE); } } } else { $this->addUnformattedDetailError('SECURITY_SITE_CHECKER_OTP_NOT_USED', CSecurityCriticalLevel::MIDDLE); } }