* @link http://www.oxidmodule.com */ namespace D3\Totp\Modules\Core; use D3\Totp\Application\Model\d3totp; use Doctrine\DBAL\DBALException; use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException; use OxidEsales\Eshop\Core\Registry; class d3_totp_utils extends d3_totp_utils_parent { /** * @return bool * @throws DBALException * @throws DatabaseConnectionException */ public function checkAccessRights() { $blAuth = parent::checkAccessRights(); $userID = Registry::getSession()->getVariable("auth"); /** @var d3totp $totp */ $totp = oxNew(d3totp::class); // und kein auth if ($blAuth && $totp->UserUseTotp($userID)) { echo __CLASS__." - ".__FUNCTION__." - ".__LINE__."
"; } return $blAuth; } }