diff --git a/docs/usage/mirroring.md b/docs/usage/mirroring.md index d360906d..63ec1378 100644 --- a/docs/usage/mirroring.md +++ b/docs/usage/mirroring.md @@ -1,6 +1,6 @@ # Mirroring and Composer proxies -Packeton can function as a proxy for the Composer repository, including requiring an authorization. +Packeton can function as a proxy for the Composer repository, including which require authentication. This feature can be used to grant all developers and clients access to private repositories such as Magento. Additionally, it is possible to create ZIP archives from mirrored Git repositories of packages, in cases where HTTP dist is unavailable. diff --git a/src/Command/UserManagerCommand.php b/src/Command/UserManagerCommand.php index 19c645bb..acb99f55 100644 --- a/src/Command/UserManagerCommand.php +++ b/src/Command/UserManagerCommand.php @@ -131,8 +131,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int if ($input->hasOption('password')) { $io->writeln("Creating a user {$username}..."); - $password = $io->askHidden('Enter password'); - $input->setOption('password', $password); + + if (empty($input->getOption('password'))) { + $password = $io->askHidden('Enter password'); + $input->setOption('password', $password); + } } $password = $input->getOption('password') ?: hash('sha512', random_bytes(50));