‪TYPO3CMS  11.5
TYPO3\CMS\Backend\Controller\LoginController Class Reference

Public Member Functions

 __construct (Typo3Information $typo3Information, EventDispatcherInterface $eventDispatcher, PageRenderer $pageRenderer, UriBuilder $uriBuilder, Features $features, Context $context, ModuleTemplateFactory $moduleTemplateFactory, LoginProviderResolver $loginProviderResolver)
 
ResponseInterface formAction (ServerRequestInterface $request)
 
ResponseInterface refreshAction (ServerRequestInterface $request)
 
string getLoginProviderIdentifier ()
 
 getCurrentRequest ()
 

Protected Member Functions

ResponseInterface appendLoginProviderCookie (NormalizedParams $normalizedParams, ResponseInterface $response)
 
 init (ServerRequestInterface $request)
 
 provideCustomLoginStyling ()
 
string createLoginLogoutForm (ServerRequestInterface $request)
 
 renderHtmlViaLoginProvider (ServerRequestInterface $request)
 
 checkRedirect (ServerRequestInterface $request)
 
 makeInterfaceSelector (ServerRequestInterface $request)
 
array getSystemNews ()
 
bool isLoginInProgress (ServerRequestInterface $request)
 
 redirectToUrl ()
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUserAuthentication ()
 

Protected Attributes

string $redirectUrl
 
string $redirectToURL
 
string $loginProviderIdentifier = ''
 
bool $loginRefresh
 
string $submitValue
 
StandaloneView $view
 
ModuleTemplate $moduleTemplate
 
EventDispatcherInterface $eventDispatcher
 
Typo3Information $typo3Information
 
PageRenderer $pageRenderer
 
UriBuilder $uriBuilder
 
Features $features
 
Context $context
 
ModuleTemplateFactory $moduleTemplateFactory
 
LoginProviderResolver $loginProviderResolver
 
ServerRequestInterface $currentRequest = null
 

Detailed Description

Controller responsible for rendering the TYPO3 Backend login form

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 53 of file LoginController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ appendLoginProviderCookie()

ResponseInterface TYPO3\CMS\Backend\Controller\LoginController::appendLoginProviderCookie ( NormalizedParams  $normalizedParams,
ResponseInterface  $response 
)
protected

If a login provider was chosen in the previous request, which is not the default provider, it is stored in a Cookie and appended to the HTTP Response.

Parameters
NormalizedParams$normalizedParams
ResponseInterface$response
Returns
‪ResponseInterface

Definition at line 163 of file LoginController.php.

References $GLOBALS, TYPO3\CMS\Core\Http\NormalizedParams\getSitePath(), and TYPO3\CMS\Core\Http\NormalizedParams\isHttps().

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

◆ checkRedirect()

TYPO3\CMS\Backend\Controller\LoginController::checkRedirect ( ServerRequestInterface  $request)
protected

◆ createLoginLogoutForm()

◆ formAction()

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

Injects the request and response objects for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now

Parameters
ServerRequestInterface$request‪the current request
Returns
‪ResponseInterface the finished response with the content

Definition at line 134 of file LoginController.php.

References TYPO3\CMS\Backend\Controller\LoginController\appendLoginProviderCookie(), TYPO3\CMS\Backend\Controller\LoginController\createLoginLogoutForm(), and TYPO3\CMS\Backend\Controller\LoginController\init().

◆ getBackendUserAuthentication()

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

◆ getCurrentRequest()

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

◆ getLanguageService()

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

◆ getLoginProviderIdentifier()

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

This can be called by single login providers, they receive an instance of $this

Returns
‪string

Definition at line 188 of file LoginController.php.

References TYPO3\CMS\Backend\Controller\LoginController\$loginProviderIdentifier.

◆ getSystemNews()

array 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 450 of file LoginController.php.

References $GLOBALS.

◆ init()

◆ isLoginInProgress()

bool TYPO3\CMS\Backend\Controller\LoginController::isLoginInProgress ( ServerRequestInterface  $request)
protected

Checks if login credentials are currently submitted

Parameters
ServerRequestInterface$request
Returns
‪bool

Definition at line 479 of file LoginController.php.

Referenced by TYPO3\CMS\Backend\Controller\LoginController\createLoginLogoutForm(), and TYPO3\CMS\Backend\Controller\LoginController\makeInterfaceSelector().

◆ makeInterfaceSelector()

TYPO3\CMS\Backend\Controller\LoginController::makeInterfaceSelector ( ServerRequestInterface  $request)
protected

◆ provideCustomLoginStyling()

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

◆ redirectToUrl()

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

Wrapper method to redirect to configured redirect URL

Definition at line 490 of file LoginController.php.

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

◆ refreshAction()

ResponseInterface TYPO3\CMS\Backend\Controller\LoginController::refreshAction ( ServerRequestInterface  $request)

Calls the main function but with loginRefresh enabled at any time

Parameters
ServerRequestInterface$request‪the current request
Returns
‪ResponseInterface the finished response with the content

Definition at line 147 of file LoginController.php.

References TYPO3\CMS\Backend\Controller\LoginController\appendLoginProviderCookie(), TYPO3\CMS\Backend\Controller\LoginController\createLoginLogoutForm(), and TYPO3\CMS\Backend\Controller\LoginController\init().

◆ renderHtmlViaLoginProvider()

TYPO3\CMS\Backend\Controller\LoginController::renderHtmlViaLoginProvider ( ServerRequestInterface  $request)
protected

Member Data Documentation

◆ $context

Context TYPO3\CMS\Backend\Controller\LoginController::$context
protected

◆ $currentRequest

ServerRequestInterface TYPO3\CMS\Backend\Controller\LoginController::$currentRequest = null
protected

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Backend\Controller\LoginController::$eventDispatcher
protected

◆ $features

Features TYPO3\CMS\Backend\Controller\LoginController::$features
protected

◆ $loginProviderIdentifier

string TYPO3\CMS\Backend\Controller\LoginController::$loginProviderIdentifier = ''
protected

◆ $loginProviderResolver

LoginProviderResolver TYPO3\CMS\Backend\Controller\LoginController::$loginProviderResolver
protected

◆ $loginRefresh

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

Login-refresh bool; The backend will call this script with this value set when the login is close to being expired and the form needs to be redrawn.

Definition at line 80 of file LoginController.php.

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Backend\Controller\LoginController::$moduleTemplate
protected

Definition at line 94 of file LoginController.php.

◆ $moduleTemplateFactory

ModuleTemplateFactory TYPO3\CMS\Backend\Controller\LoginController::$moduleTemplateFactory
protected

◆ $pageRenderer

PageRenderer TYPO3\CMS\Backend\Controller\LoginController::$pageRenderer
protected

◆ $redirectToURL

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

Set to the redirect URL of the form (may be redirect_url or "index.php?M=main")

Definition at line 65 of file LoginController.php.

◆ $redirectUrl

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

The URL to redirect to after login.

Definition at line 59 of file LoginController.php.

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

◆ $submitValue

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

Value of forms submit button for login.

Definition at line 86 of file LoginController.php.

◆ $typo3Information

Typo3Information TYPO3\CMS\Backend\Controller\LoginController::$typo3Information
protected

◆ $uriBuilder

UriBuilder TYPO3\CMS\Backend\Controller\LoginController::$uriBuilder
protected

◆ $view

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

Definition at line 90 of file LoginController.php.