TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Controller\LoginController Class Reference

Public Member Functions

 __construct ()
 
 formAction (ServerRequestInterface $request, ResponseInterface $response)
 
 makeInterfaceSelectorBox ()
 
 getLoginProviderIdentifier ()
 

Protected Member Functions

 checkRedirect ()
 
 getSystemNews ()
 
 isLoginInProgress ()
 
 validateAndSortLoginProviders ()
 
 detectLoginProvider ()
 
 getLanguageService ()
 
 getBackendUserAuthentication ()
 
 getDatabaseConnection ()
 
 getDocumentTemplate ()
 

Protected Attributes

 $redirectUrl
 
 $redirectToURL
 
 $loginProviderIdentifier = null
 
 $loginProviders = []
 
 $loginRefresh
 
 $submitValue
 
 $view
 

Private Member Functions

 getUriForFileName ($filename)
 

Detailed Description

Script Class for rendering the login form

Definition at line 34 of file LoginController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ checkRedirect()

TYPO3\CMS\Backend\Controller\LoginController::checkRedirect ( )
protected

◆ detectLoginProvider()

TYPO3\CMS\Backend\Controller\LoginController::detectLoginProvider ( )
protected

Detect the login provider, get from request or choose the first one as default

Returns
string

Definition at line 485 of file LoginController.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\_GP().

Referenced by TYPO3\CMS\Backend\Controller\LoginController\__construct().

◆ formAction()

TYPO3\CMS\Backend\Controller\LoginController::formAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

◆ getBackendUserAuthentication()

TYPO3\CMS\Backend\Controller\LoginController::getBackendUserAuthentication ( )
protected

◆ getDatabaseConnection()

TYPO3\CMS\Backend\Controller\LoginController::getDatabaseConnection ( )
protected

Returns the database connection

Returns

Definition at line 530 of file LoginController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\LoginController\getSystemNews().

◆ getDocumentTemplate()

TYPO3\CMS\Backend\Controller\LoginController::getDocumentTemplate ( )
protected

Returns an instance of DocumentTemplate

Returns

Definition at line 540 of file LoginController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\LoginController\checkRedirect(), and TYPO3\CMS\Backend\Controller\LoginController\formAction().

◆ getLanguageService()

TYPO3\CMS\Backend\Controller\LoginController::getLanguageService ( )
protected

◆ getLoginProviderIdentifier()

TYPO3\CMS\Backend\Controller\LoginController::getLoginProviderIdentifier ( )

◆ getSystemNews()

TYPO3\CMS\Backend\Controller\LoginController::getSystemNews ( )
protected

Gets news from sys_news and converts them into a format suitable for showing them at the login screen.

Returns
array An array of login news.

Definition at line 370 of file LoginController.php.

References $GLOBALS, TYPO3\CMS\Backend\Utility\BackendUtility\BEenableFields(), TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), and TYPO3\CMS\Backend\Controller\LoginController\getDatabaseConnection().

Referenced by TYPO3\CMS\Backend\Controller\LoginController\formAction().

◆ getUriForFileName()

TYPO3\CMS\Backend\Controller\LoginController::getUriForFileName (   $filename)
private

Returns the uri of a relative reference, resolves the "EXT:" prefix (way of referring to files inside extensions) and checks that the file is inside the PATH_site of the TYPO3 installation

Parameters
string$filenameThe input filename/filepath to evaluate
Returns
string Returns the filename of $filename if valid, otherwise blank string.

Definition at line 394 of file LoginController.php.

References TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), TYPO3\CMS\Core\Utility\GeneralUtility\getFileAbsFileName(), and TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv().

Referenced by TYPO3\CMS\Backend\Controller\LoginController\formAction().

◆ isLoginInProgress()

◆ makeInterfaceSelectorBox()

TYPO3\CMS\Backend\Controller\LoginController::makeInterfaceSelectorBox ( )

◆ validateAndSortLoginProviders()

TYPO3\CMS\Backend\Controller\LoginController::validateAndSortLoginProviders ( )
protected

Validates the registered login providers

Exceptions

Definition at line 445 of file LoginController.php.

References $a, and $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\LoginController\__construct().

Member Data Documentation

◆ $loginProviderIdentifier

TYPO3\CMS\Backend\Controller\LoginController::$loginProviderIdentifier = null
protected

◆ $loginProviders

TYPO3\CMS\Backend\Controller\LoginController::$loginProviders = []
protected

Definition at line 62 of file LoginController.php.

◆ $loginRefresh

TYPO3\CMS\Backend\Controller\LoginController::$loginRefresh
protected

Definition at line 71 of file LoginController.php.

◆ $redirectToURL

TYPO3\CMS\Backend\Controller\LoginController::$redirectToURL
protected

Definition at line 48 of file LoginController.php.

◆ $redirectUrl

TYPO3\CMS\Backend\Controller\LoginController::$redirectUrl
protected

Definition at line 41 of file LoginController.php.

◆ $submitValue

TYPO3\CMS\Backend\Controller\LoginController::$submitValue
protected

Definition at line 78 of file LoginController.php.

◆ $view

TYPO3\CMS\Backend\Controller\LoginController::$view
protected