TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
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 ( )
protected

Checking, if we should perform some sort of redirection OR closing of windows.

Do redirect:

If a user is logged in AND a) if either the login is just done (isLoginInProgress) or b) a loginRefresh is done

Exceptions
\RuntimeException
\UnexpectedValueException

Definition at line 257 of file LoginController.php.

References GeneralUtility\_GP(), FormProtectionFactory\get(), LoginController\getBackendUserAuthentication(), BackendUserAuthentication\getCookieName(), LoginController\getDocumentTemplate(), LoginController\isLoginInProgress(), and HttpUtility\redirect().

detectLoginProvider ( )
protected

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

Returns
string

Definition at line 483 of file LoginController.php.

References $GLOBALS, and GeneralUtility\_GP().

Referenced by LoginController\__construct().

formAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

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$requestthe current request
ResponseInterface$responsethe current response
Returns
ResponseInterface the finished response with the content

Definition at line 133 of file LoginController.php.

References $response, and MessageInterface\getBody().

getBackendUserAuthentication ( )
protected
Returns
BackendUserAuthentication

Definition at line 518 of file LoginController.php.

References $GLOBALS.

Referenced by LoginController\__construct(), and LoginController\checkRedirect().

getDatabaseConnection ( )
protected

Returns the database connection

Returns

Definition at line 528 of file LoginController.php.

References $GLOBALS.

Referenced by LoginController\getSystemNews().

getDocumentTemplate ( )
protected

Returns an instance of DocumentTemplate

Returns

Definition at line 538 of file LoginController.php.

References $GLOBALS.

Referenced by LoginController\checkRedirect().

getLanguageService ( )
protected

Returns LanguageService

Returns

Definition at line 510 of file LoginController.php.

References $GLOBALS.

Referenced by LoginController\__construct(), and LoginController\makeInterfaceSelectorBox().

getLoginProviderIdentifier ( )
Returns
string

Definition at line 500 of file LoginController.php.

References LoginController\$loginProviderIdentifier.

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

References $GLOBALS, BackendUtility\BEenableFields(), BackendUtility\deleteClause(), and LoginController\getDatabaseConnection().

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

References $filename, elseif, PathUtility\getAbsoluteWebPath(), GeneralUtility\getFileAbsFileName(), and GeneralUtility\getIndpEnv().

isLoginInProgress ( )
protected

Checks if login credentials are currently submitted

Returns
bool

Definition at line 415 of file LoginController.php.

References GeneralUtility\_GP().

Referenced by LoginController\checkRedirect(), and LoginController\makeInterfaceSelectorBox().

makeInterfaceSelectorBox ( )

Making interface selector:

Returns
void

Definition at line 332 of file LoginController.php.

References $GLOBALS, elseif, LoginController\getLanguageService(), LoginController\isLoginInProgress(), and GeneralUtility\trimExplode().

validateAndSortLoginProviders ( )
protected

Validates the registered login providers

Exceptions
\RuntimeException

Definition at line 443 of file LoginController.php.

References $GLOBALS.

Referenced by LoginController\__construct().

Member Data Documentation

$loginProviderIdentifier = null
protected

Definition at line 55 of file LoginController.php.

Referenced by LoginController\getLoginProviderIdentifier().

$loginProviders = []
protected

Definition at line 62 of file LoginController.php.

$loginRefresh
protected

Definition at line 71 of file LoginController.php.

$redirectToURL
protected

Definition at line 48 of file LoginController.php.

$redirectUrl
protected

Definition at line 41 of file LoginController.php.

$submitValue
protected

Definition at line 78 of file LoginController.php.

$view
protected

Definition at line 83 of file LoginController.php.