Skip to content
Permalink
Browse files

[database:add] Hide the dbpass on interactive mode (#4041)

  • Loading branch information...
harold20 authored and enzolutions committed May 16, 2019
1 parent 6fe73b3 commit 610b6d983de5138f336767d0d02a3b5ddf1f3e1a
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/Command/Database/AddCommand.php
@@ -56,7 +56,7 @@ protected function configure()
->addOption(
'password',
null,
InputOption::VALUE_REQUIRED,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.database.add.options.password')
)
->addOption(
@@ -122,9 +122,8 @@ protected function interact(InputInterface $input, OutputInterface $output)
$input->setOption('username', $username);
$password = $input->getOption('password');
if (!$password) {
$password = $this->getIo()->ask(
$this->trans('commands.database.add.questions.password'),
''
$password = $this->getIo()->askHiddenEmpty(
$this->trans('commands.migrate.execute.questions.db-pass')
);
}
$input->setOption('password', $password);

0 comments on commit 610b6d9

Please sign in to comment.
You can’t perform that action at this time.