Neos\Neos\Command\UserCommandController::activateCommand PHP Méthode

activateCommand() public méthode

This command reactivates possibly expired accounts for the given user. If an authentication provider is specified, this command will look for an account with the given username related to the given provider. Still, this command will activate all accounts of a user, once such a user has been found.
public activateCommand ( string $username, string $authenticationProvider = null ) : void
$username string The username of the user to be activated.
$authenticationProvider string Name of the authentication provider to use for finding the user. Example: "Typo3BackendProvider"
Résultat void
    public function activateCommand($username, $authenticationProvider = null)
    {
        $user = $this->getUserOrFail($username, $authenticationProvider);
        $this->userService->activateUser($user);
        $this->outputLine('Activated user "%s".', array($username));
    }