AppserverIo\Appserver\ServletEngine\Authenticator\FormAuthenticator::onSuccess PHP Метод

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

Will be invoked on a successfull login.
protected onSuccess ( AppserverIo\Psr\Security\PrincipalInterface $userPrincipal, AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest, AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : void
$userPrincipal AppserverIo\Psr\Security\PrincipalInterface The user principal logged into the system
$servletRequest AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface The servlet request instance
$servletResponse AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface The servlet response instance
Результат void
    protected function onSuccess(PrincipalInterface $userPrincipal, HttpServletRequestInterface $servletRequest, HttpServletResponseInterface $servletResponse)
    {
        // add the user principal and the authentication type to the request
        $this->register($servletRequest, $servletResponse, $userPrincipal);
        // forward to the stored request
        $this->forwardToFormRequest($servletRequest, $servletResponse);
    }