diff --git a/core/Command/User/ResetPassword.php b/core/Command/User/ResetPassword.php index 3388ef6a1b..56260e9714 100644 --- a/core/Command/User/ResetPassword.php +++ b/core/Command/User/ResetPassword.php @@ -100,6 +100,11 @@ class ResetPassword extends Command { $question->setHidden(true); $password = $helper->ask($input, $output, $question); + if ($password === null) { + $output->writeln("Password cannot be empty!"); + return 1; + } + $question = new Question('Confirm the new password: '); $question->setHidden(true); $confirm = $helper->ask($input, $output, $question);