Skip to content

Commit c53addf

Browse files
committed
skipped checking password when --no-interaction is used
1 parent afc3533 commit c53addf

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
116116
'For security reasons, you\'re required to change the default admin password. Remember to follow currently set password validation rules.'
117117
);
118118

119-
do {
120-
$exitCode = $this->changeDefaultAdminPassword($input);
121-
} while ($exitCode !== self::SUCCESS);
119+
if ($input->isInteractive()) {
120+
do {
121+
$exitCode = $this->changeDefaultAdminPassword($input);
122+
} while ($exitCode !== self::SUCCESS);
123+
}
122124

123125
$this->cacheClear($output);
124126

@@ -296,10 +298,6 @@ private function changeDefaultAdminPassword(InputInterface $input): int
296298
'--password' => $password,
297299
]);
298300

299-
$commandInput->setInteractive(
300-
$input->isInteractive()
301-
);
302-
303301
$application = $this->getApplication();
304302

305303
if ($application === null) {

0 commit comments

Comments
 (0)