LoginController
class LoginController extends AbstractAuthenticationController (View source)
A controller which allows for logging into the backend
Properties
protected string | $defaultViewObjectName | ||
protected SessionInterface | $session | ||
protected SessionManagerInterface | $sessionManager | ||
protected BackendRedirectionService | $backendRedirectionService | ||
protected DomainRepository | $domainRepository | ||
protected SiteRepository | $siteRepository | ||
protected StringFrontend | $loginTokenCache | ||
protected string | $sessionName | ||
protected FlashMessageService | $flashMessageService | ||
protected array | $viewFormatToObjectNameMap | ||
protected array | $supportedMediaTypes |
Methods
No description
Default action, displays the login screen
Logs a user in if a session identifier is available under the given token in the token cache.
Is called if authentication failed.
Is called if authentication was successful.
Logs out a - possibly - currently logged in account.
Disable the default error flash message
Sets the session cookie to the given identifier, overriding an existing cookie.
Details
void
initializeIndexAction()
No description
void
indexAction(string|null $username = null, bool $unauthorized = false)
Default action, displays the login screen
void
tokenLoginAction(string $token)
Logs a user in if a session identifier is available under the given token in the token cache.
protected void
onAuthenticationFailure(AuthenticationRequiredException $exception = null)
Is called if authentication failed.
protected void
onAuthenticationSuccess(ActionRequest $originalRequest = null)
Is called if authentication was successful.
void
logoutAction()
Logs out a - possibly - currently logged in account.
The possible redirection URI is queried from the redirection service at first, before the actual logout takes place, and the session gets destroyed.
protected bool
getErrorFlashMessage()
Disable the default error flash message
protected void
replaceSessionCookie(string $sessionIdentifier)
Sets the session cookie to the given identifier, overriding an existing cookie.