PHP Класс Neos\Neos\Controller\LoginController

Наследование: extends Neos\Flow\Security\Authentication\Controller\AbstractAuthenticationController
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$backendRedirectionService Neos\Neos\Service\BackendRedirectionService
$domainRepository Neos\Neos\Domain\Repository\DomainRepository
$loginTokenCache Neos\Cache\Frontend\StringFrontend
$session Neos\Flow\Session\SessionInterface
$sessionManager Neos\Flow\Session\SessionManagerInterface
$sessionName string
$siteRepository Neos\Neos\Domain\Repository\SiteRepository
$supportedMediaTypes array
$viewFormatToObjectNameMap array

Открытые методы

Метод Описание
indexAction ( string $username = null, boolean $unauthorized = false ) : void Default action, displays the login screen
initializeIndexAction ( ) : void
logoutAction ( ) : void Logs out a - possibly - currently logged in account.
tokenLoginAction ( string $token ) : void Logs a user in if a session identifier is available under the given token in the token cache.

Защищенные методы

Метод Описание
getErrorFlashMessage ( ) : boolean Disable the default error flash message
onAuthenticationFailure ( AuthenticationRequiredException $exception = null ) : void Is called if authentication failed.
onAuthenticationSuccess ( ActionRequest $originalRequest = null ) : void Is called if authentication was successful.
replaceSessionCookie ( string $sessionIdentifier ) : void Sets the session cookie to the given identifier, overriding an existing cookie.

Описание методов

getErrorFlashMessage() защищенный Метод

Disable the default error flash message
protected getErrorFlashMessage ( ) : boolean
Результат boolean

indexAction() публичный Метод

Default action, displays the login screen
public indexAction ( string $username = null, boolean $unauthorized = false ) : void
$username string Optional: A username to pre-fill into the username field
$unauthorized boolean
Результат void

initializeIndexAction() публичный Метод

public initializeIndexAction ( ) : void
Результат void

logoutAction() публичный Метод

The possible redirection URI is queried from the redirection service at first, before the actual logout takes place, and the session gets destroyed.
public logoutAction ( ) : void
Результат void

onAuthenticationFailure() защищенный Метод

Is called if authentication failed.
protected onAuthenticationFailure ( AuthenticationRequiredException $exception = null ) : void
$exception Neos\Flow\Security\Exception\AuthenticationRequiredException The exception thrown while the authentication process
Результат void

onAuthenticationSuccess() защищенный Метод

Is called if authentication was successful.
protected onAuthenticationSuccess ( ActionRequest $originalRequest = null ) : void
$originalRequest Neos\Flow\Mvc\ActionRequest The request that was intercepted by the security framework, NULL if there was none
Результат void

replaceSessionCookie() защищенный Метод

Sets the session cookie to the given identifier, overriding an existing cookie.
protected replaceSessionCookie ( string $sessionIdentifier ) : void
$sessionIdentifier string
Результат void

tokenLoginAction() публичный Метод

Logs a user in if a session identifier is available under the given token in the token cache.
public tokenLoginAction ( string $token ) : void
$token string
Результат void

Описание свойств

$backendRedirectionService защищенное свойство

protected BackendRedirectionService,Neos\Neos\Service $backendRedirectionService
Результат Neos\Neos\Service\BackendRedirectionService

$domainRepository защищенное свойство

protected DomainRepository,Neos\Neos\Domain\Repository $domainRepository
Результат Neos\Neos\Domain\Repository\DomainRepository

$loginTokenCache защищенное свойство

protected StringFrontend,Neos\Cache\Frontend $loginTokenCache
Результат Neos\Cache\Frontend\StringFrontend

$session защищенное свойство

protected SessionInterface,Neos\Flow\Session $session
Результат Neos\Flow\Session\SessionInterface

$sessionManager защищенное свойство

protected SessionManagerInterface,Neos\Flow\Session $sessionManager
Результат Neos\Flow\Session\SessionManagerInterface

$sessionName защищенное свойство

protected string $sessionName
Результат string

$siteRepository защищенное свойство

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
Результат Neos\Neos\Domain\Repository\SiteRepository

$supportedMediaTypes защищенное свойство

protected array $supportedMediaTypes
Результат array

$viewFormatToObjectNameMap защищенное свойство

protected array $viewFormatToObjectNameMap
Результат array