Neos.Neos/Classes/Command/UserCommandController.php
public function setPasswordCommand($username, $password, $authenticationProvider = null)
    {
        $user = $this->userService->getUser($username, $authenticationProvider);
        if (!$user instanceof User) {
            $this->outputLine('The user "%s" does not exist.', [$username]);
            $this->quit(1);
        }
        $this->userService->setUserPassword($user, $password);
        $this->outputLine('The new password for user "%s" was set.', [$username]);
    }
public function setPasswordCommand($username, $password, $authenticationProvider = null)
    {
        $user = $this->userService->getUser($username, $authenticationProvider);
        if (!$user instanceof User) {
            $this->outputLine('The user "%s" does not exist.', [$username]);
            $this->quit(1);
        }
        $this->userService->setUserPassword($user, $password);
        $this->outputLine('The new password for user "%s" was set.', [$username]);
    }
public function setPasswordCommand ( $ username , $ password , $ authenticationProvider = null ) { $ user = $ this -> userService -> getUser ( $ username , $ authenticationProvider ) ; if ( ! $ user instanceof User ) { $ this -> outputLine ( 'The user "%s" does not exist.' , [ $ username ] ) ; $ this -> quit ( 1 ) ; } $ this -> userService -> setUserPassword ( $ user , $ password ) ; $ this -> outputLine ( 'The new password for user "%s" was set.' , [ $ username ] ) ; }
Set a new password for the given user

This command sets a new password for an existing user. More specifically, all accounts related to the user
which are based on a username / password token will receive the new password.

If an authentication provider was specified, the user will be determined by an account identified by "username"
related to the given provider.

@param string $username Username of the user to modify
@param string $password The new password
@param string $authenticationProvider Name of the authentication provider to use for finding the user. Example: "Neos.Neos:Backend"
@return void
Set a new password for the given user