‪TYPO3CMS  11.5
TYPO3\CMS\FrontendLogin\Controller\LoginController Class Reference
Inheritance diagram for TYPO3\CMS\FrontendLogin\Controller\LoginController:
TYPO3\CMS\FrontendLogin\Controller\AbstractLoginFormController TYPO3\CMS\Extbase\Mvc\Controller\ActionController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface

Public Member Functions

 __construct (RedirectHandler $redirectHandler, ServerRequestHandler $requestHandler, UserService $userService, RedirectUrlValidator $redirectUrlValidator, EventDispatcherInterface $eventDispatcher)
 
 initializeAction ()
 
 loginAction ()
 
 overviewAction (bool $showLoginMessage=false)
 
 logoutAction (int $redirectPageLogout=0)
 
 isRedirectDisabled ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectResponseFactory (ResponseFactoryInterface $responseFactory)
 
 injectStreamFactory (StreamFactoryInterface $streamFactory)
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (ObjectManagerInterface $objectManager)
 
 injectSignalSlotDispatcher (Dispatcher $signalSlotDispatcher)
 
 injectValidatorResolver (ValidatorResolver $validatorResolver)
 
 injectViewResolver (ViewResolverInterface $viewResolver)
 
 injectReflectionService (ReflectionService $reflectionService)
 
 injectHashService (HashService $hashService)
 
 injectMvcPropertyMappingConfigurationService (MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 injectEventDispatcher (EventDispatcherInterface $eventDispatcher)
 
 injectPropertyMapper (PropertyMapper $propertyMapper)
 
 injectInternalFlashMessageService (FlashMessageService $flashMessageService)
 
 injectInternalExtensionService (ExtensionService $extensionService)
 
 initializeControllerArgumentsBaseValidators ()
 
ResponseInterface processRequest (RequestInterface $request)
 
ControllerContext getControllerContext ()
 
 addFlashMessage ($messageBody, $messageTitle='', $severity=AbstractMessage::OK, $storeInSession=true)
 
never forward ($actionName, $controllerName=null, $extensionName=null, array $arguments=null)
 
never throwStatus ($statusCode, $statusMessage=null, $content=null)
 

Public Attributes

const MESSAGEKEY_DEFAULT = 'welcome'
 
const MESSAGEKEY_ERROR = 'error'
 
const MESSAGEKEY_LOGOUT = 'logout'
 

Protected Member Functions

 handleRedirect ()
 
 handleLoginForwards ()
 
 getPermaloginStatus ()
 
 isPermaloginDisabled (int $permaLogin)
 
 shouldRedirectToOverview ()
 
 getStatusMessageKey ()
 
 isLoginOrLogoutInProgress ()
 
 isLogoutSuccessful ()
 
 hasLoginErrorOccurred ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 initializeView (ViewInterface $view)
 
 initializeActionMethodArguments ()
 
 initializeActionMethodValidators ()
 
 renderAssetsForRequest ($request)
 
string resolveActionMethodName ()
 
 callActionMethod (RequestInterface $request)
 
ViewInterface resolveView ()
 
 setViewConfiguration (ViewInterface $view)
 
array getViewProperty ($extbaseFrameworkConfiguration, $setting)
 
ResponseInterface errorAction ()
 
 addErrorFlashMessage ()
 
string bool getErrorFlashMessage ()
 
ResponseInterface null forwardToReferringRequest ()
 
string getFlattenedValidationErrorMessage ()
 
 getFlashMessageQueue (string $identifier=null)
 
ControllerContext buildControllerContext ()
 
never redirect ($actionName, $controllerName=null, $extensionName=null, array $arguments=null, $pageUid=null, $_=null, $statusCode=303)
 
never redirectToUri ($uri, $_=null, $statusCode=303)
 
string addBaseUriIfNecessary ($uri)
 
 mapRequestArgumentsToControllerArguments ()
 
ResponseInterface htmlResponse (string $html=null)
 
ResponseInterface jsonResponse (string $json=null)
 

Protected Attributes

RedirectHandler $redirectHandler
 
string $loginType = ''
 
string $redirectUrl = ''
 
ServerRequestHandler $requestHandler
 
UserService $userService
 
RedirectConfiguration $configuration
 
EventDispatcherInterface $eventDispatcher
 
UserAspect $userAspect
 
RedirectUrlValidator $redirectUrlValidator
 
bool $showCookieWarning = false
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
ResponseFactoryInterface $responseFactory
 
StreamFactoryInterface $streamFactory
 
TYPO3 CMS Extbase Reflection ReflectionService $reflectionService
 
HashService $hashService
 
ViewInterface $view
 
string $defaultViewObjectName = TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
TYPO3 CMS Extbase Mvc Controller MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
EventDispatcherInterface $eventDispatcher
 
Request $request
 
TYPO3 CMS Extbase SignalSlot Dispatcher $signalSlotDispatcher
 
ObjectManagerInterface $objectManager
 
TYPO3 CMS Extbase Mvc Web Routing UriBuilder $uriBuilder
 
array $settings
 
TYPO3 CMS Extbase Validation ValidatorResolver $validatorResolver
 
TYPO3 CMS Extbase Mvc Controller Arguments $arguments
 
ControllerContext $controllerContext
 
ConfigurationManagerInterface $configurationManager
 

Detailed Description

Used for plugin login

Definition at line 41 of file LoginController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ getPermaloginStatus()

TYPO3\CMS\FrontendLogin\Controller\LoginController::getPermaloginStatus ( )
protected

The permanent login checkbox should only be shown if permalogin is not deactivated (-1), not forced to be always active (2) and lifetime is greater than 0

Definition at line 246 of file LoginController.php.

References $GLOBALS, and TYPO3\CMS\FrontendLogin\Controller\LoginController\isPermaloginDisabled().

Referenced by TYPO3\CMS\FrontendLogin\Controller\LoginController\loginAction().

◆ getStatusMessageKey()

◆ handleLoginForwards()

TYPO3\CMS\FrontendLogin\Controller\LoginController::handleLoginForwards ( )
protected

Handle forwards to overview and logout actions from login action

Definition at line 229 of file LoginController.php.

References TYPO3\CMS\FrontendLogin\Controller\LoginController\shouldRedirectToOverview().

Referenced by TYPO3\CMS\FrontendLogin\Controller\LoginController\loginAction().

◆ handleRedirect()

TYPO3\CMS\FrontendLogin\Controller\LoginController::handleRedirect ( )
protected

◆ hasLoginErrorOccurred()

TYPO3\CMS\FrontendLogin\Controller\LoginController::hasLoginErrorOccurred ( )
protected

◆ initializeAction()

◆ isLoginOrLogoutInProgress()

TYPO3\CMS\FrontendLogin\Controller\LoginController::isLoginOrLogoutInProgress ( )
protected

◆ isLogoutSuccessful()

TYPO3\CMS\FrontendLogin\Controller\LoginController::isLogoutSuccessful ( )
protected

◆ isPermaloginDisabled()

TYPO3\CMS\FrontendLogin\Controller\LoginController::isPermaloginDisabled ( int  $permaLogin)
protected

◆ isRedirectDisabled()

TYPO3\CMS\FrontendLogin\Controller\LoginController::isRedirectDisabled ( )

Is redirect disabled by setting or noredirect parameter

Definition at line 293 of file LoginController.php.

Referenced by TYPO3\CMS\FrontendLogin\Controller\LoginController\initializeAction(), and TYPO3\CMS\FrontendLogin\Controller\LoginController\logoutAction().

◆ loginAction()

◆ logoutAction()

◆ overviewAction()

TYPO3\CMS\FrontendLogin\Controller\LoginController::overviewAction ( bool  $showLoginMessage = false)

◆ shouldRedirectToOverview()

TYPO3\CMS\FrontendLogin\Controller\LoginController::shouldRedirectToOverview ( )
protected

Redirect to overview on login successful and setting showLogoutFormAfterLogin disabled

Definition at line 263 of file LoginController.php.

References TYPO3\CMS\Core\Authentication\LoginType\LOGIN.

Referenced by TYPO3\CMS\FrontendLogin\Controller\LoginController\handleLoginForwards().

Member Data Documentation

◆ $configuration

RedirectConfiguration TYPO3\CMS\FrontendLogin\Controller\LoginController::$configuration
protected

Definition at line 80 of file LoginController.php.

◆ $eventDispatcher

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

◆ $loginType

string TYPO3\CMS\FrontendLogin\Controller\LoginController::$loginType = ''
protected

Definition at line 64 of file LoginController.php.

◆ $redirectHandler

RedirectHandler TYPO3\CMS\FrontendLogin\Controller\LoginController::$redirectHandler
protected

◆ $redirectUrl

string TYPO3\CMS\FrontendLogin\Controller\LoginController::$redirectUrl = ''
protected

Definition at line 68 of file LoginController.php.

◆ $redirectUrlValidator

RedirectUrlValidator TYPO3\CMS\FrontendLogin\Controller\LoginController::$redirectUrlValidator
protected

◆ $requestHandler

ServerRequestHandler TYPO3\CMS\FrontendLogin\Controller\LoginController::$requestHandler
protected

◆ $showCookieWarning

bool TYPO3\CMS\FrontendLogin\Controller\LoginController::$showCookieWarning = false
protected

Definition at line 96 of file LoginController.php.

◆ $userAspect

UserAspect TYPO3\CMS\FrontendLogin\Controller\LoginController::$userAspect
protected

Definition at line 88 of file LoginController.php.

◆ $userService

UserService TYPO3\CMS\FrontendLogin\Controller\LoginController::$userService
protected

◆ MESSAGEKEY_DEFAULT

const TYPO3\CMS\FrontendLogin\Controller\LoginController::MESSAGEKEY_DEFAULT = 'welcome'

◆ MESSAGEKEY_ERROR

const TYPO3\CMS\FrontendLogin\Controller\LoginController::MESSAGEKEY_ERROR = 'error'

◆ MESSAGEKEY_LOGOUT

const TYPO3\CMS\FrontendLogin\Controller\LoginController::MESSAGEKEY_LOGOUT = 'logout'