/** * Starts a user session * * @return void * @see \TYPO3\CMS\Core\Authentication\AbstractUserAuthentication::start() * @todo Define visibility */ public function start() { if ((int) $this->auth_timeout_field > 0 && (int) $this->auth_timeout_field < $this->lifetime) { // If server session timeout is non-zero but less than client session timeout: Copy this value instead. $this->auth_timeout_field = $this->lifetime; } $this->sessionDataLifetime = (int) $GLOBALS['TYPO3_CONF_VARS']['FE']['sessionDataLifetime']; if ($this->sessionDataLifetime <= 0) { $this->sessionDataLifetime = 86400; } parent::start(); }
/** * Sets the security level for the Backend login * * @return void * @todo Define visibility */ public function start() { $securityLevel = trim($GLOBALS['TYPO3_CONF_VARS']['BE']['loginSecurityLevel']); $standardSecurityLevels = array('normal', 'challenged', 'superchallenged'); // The TYPO3 standard login service relies on $this->security_level being set // to 'superchallenged' because of the password in the database is stored as md5 hash. // @deprecated since 4.7 // These lines are here for compatibility purpose only, can be removed in 6.1. // @see tx_sv_auth::processLoginData() if (!empty($securityLevel) && !in_array($securityLevel, $standardSecurityLevels)) { $this->security_level = $securityLevel; } else { $this->security_level = 'superchallenged'; } parent::start(); }