Neos\Neos\Controller\LoginController::onAuthenticationFailure PHP Метод

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
    protected function onAuthenticationFailure(AuthenticationRequiredException $exception = null)
    {
        if ($this->view instanceof JsonView) {
            $this->view->assign('value', array('success' => false));
        } else {
            $this->addFlashMessage('The entered username or password was wrong', 'Wrong credentials', Message::SEVERITY_ERROR, array(), $exception === null ? 1347016771 : $exception->getCode());
        }
    }