コード例 #1
0
ファイル: RsaAuthService.php プロジェクト: plan2net/TYPO3.CMS
 /**
  * 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;
 }
コード例 #2
0
ファイル: Sv1.php プロジェクト: woehrlag/Intranet
 /**
  * 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();
 }
コード例 #3
0
 /**
  * Initializes the service.
  *
  * @return bool
  */
 public function init()
 {
     return parent::init() && $this->getRsaEncryptionDecoder()->isAvailable();
 }
コード例 #4
0
 /**
  * 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();
 }