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

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

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

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

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

Note: You need to send the password in this POST parameter:
__authentication[Neos][Flow][Security][Authentication][Token][PasswordToken][password]

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