/** * Initializes the service. * * @return bool */ public function init() { $available = parent::init(); if ($available) { // Get the backend $this->backend = \TYPO3\CMS\Rsaauth\Backend\BackendFactory::getBackend(); if ($this->backend === NULL) { $available = FALSE; } } return $available; }
/** * Initialization of the service * * * @return int|True if available */ public function init() { //\TYPO3\CMS\Core\Utility\DebugUtility::debugInPopUpWindow(parent::init(), 'true if the service available'); //\TYPO3\CMS\Core\Utility\DebugUtility::debugInPopUpWindow($_SERVER, 'dbUserSetup'); return parent::init(); }
/** * Initializes the service. * * @return bool */ public function init() { return parent::init() && $this->getRsaEncryptionDecoder()->isAvailable(); }
/** * Ensure chain breaking if client is already banned! * Simulate an invalid user and stop the chain by setting the "fetchAllUsers" configuration to "FALSE"; * * @return bool|array */ public function getUser() { if ($this->isProtectionEnabled() && $this->getRestrictionService()->isClientRestricted()) { $GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['setup'][$this->frontendUserAuthentication->loginType . '_fetchAllUsers'] = false; return array('uid' => 0); } return parent::getUser(); }