public function updateCredentials(ActionRequest $actionRequest)
    {
        $httpRequest = $actionRequest->getHttpRequest();
        if ($httpRequest->getMethod() !== 'POST') {
            return;
        }

        $arguments = $actionRequest->getInternalArguments();
        $username = ObjectAccess::getPropertyPath($arguments, '__authentication.Neos.Flow.Security.Authentication.Token.UsernamePassword.username');
        $password = ObjectAccess::getPropertyPath($arguments, '__authentication.Neos.Flow.Security.Authentication.Token.UsernamePassword.password');

        if (!empty($username) && !empty($password)) {
            $this->credentials['username'] = $username;
            $this->credentials['password'] = $password;
            $this->setAuthenticationStatus(self::AUTHENTICATION_NEEDED);
        }
    }
public function updateCredentials(ActionRequest $actionRequest)
    {
        $httpRequest = $actionRequest->getHttpRequest();
        if ($httpRequest->getMethod() !== 'POST') {
            return;
        }

        $arguments = $actionRequest->getInternalArguments();
        $username = ObjectAccess::getPropertyPath($arguments, '__authentication.Neos.Flow.Security.Authentication.Token.UsernamePassword.username');
        $password = ObjectAccess::getPropertyPath($arguments, '__authentication.Neos.Flow.Security.Authentication.Token.UsernamePassword.password');

        if (!empty($username) && !empty($password)) {
            $this->credentials['username'] = $username;
            $this->credentials['password'] = $password;
            $this->setAuthenticationStatus(self::AUTHENTICATION_NEEDED);
        }
    }
public function updateCredentials ( ActionRequest $ actionRequest ) { $ httpRequest = $ actionRequest -> getHttpRequest ( ) ; if ( $ httpRequest -> getMethod ( ) !== 'POST' ) { return ; } $ arguments = $ actionRequest -> getInternalArguments ( ) ; $ username = ObjectAccess :: getPropertyPath ( $ arguments , '__authentication.Neos.Flow.Security.Authentication.Token.UsernamePassword.username' ) ; $ password = ObjectAccess :: getPropertyPath ( $ arguments , '__authentication.Neos.Flow.Security.Authentication.Token.UsernamePassword.password' ) ; if ( ! empty ( $ username ) && ! empty ( $ password ) ) { $ this -> credentials [ 'username' ] = $ username ; $ this -> credentials [ 'password' ] = $ password ; $ this -> setAuthenticationStatus ( self :: AUTHENTICATION_NEEDED ) ; } }
Updates the username and password credentials from the POST vars, if the POST parameters
are available. Sets the authentication status to REAUTHENTICATION_NEEDED, if credentials have been sent.

Note: You need to send the username and password in these two POST parameters:
__authentication[Neos][Flow][Security][Authentication][Token][UsernamePassword][username]
and __authentication[Neos][Flow][Security][Authentication][Token][UsernamePassword][password]

@param ActionRequest $actionRequest The current action request
@return void
Updates the username and password credentials from the POST vars if the POST parameters are available . Sets the authentication status to REAUTHENTICATION_NEEDED if credentials have been sent .