File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
apps/encryption/lib/Crypto Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -278,8 +278,12 @@ protected function outputPasswords(): void {
278278 $ this ->writePasswordsToFile ($ newPasswords );
279279
280280 $ this ->output ->writeln ('' );
281- $ question = new ConfirmationQuestion ('Do you want to send the passwords directly to the users by mail? (y/n) ' , false );
282- if ($ this ->questionHelper ->ask ($ this ->input , $ this ->output , $ question )) {
281+ if ($ this ->input ->isInteractive ()) {
282+ $ question = new ConfirmationQuestion ('Do you want to send the passwords directly to the users by mail? (y/n) ' , false );
283+ if ($ this ->questionHelper ->ask ($ this ->input , $ this ->output , $ question )) {
284+ $ this ->sendPasswordsByMail ();
285+ }
286+ } elseif (!$ this ->input ->isInteractive () && $ this ->input ->getOption ('no-interaction ' )) {
283287 $ this ->sendPasswordsByMail ();
284288 }
285289 }
You can’t perform that action at this time.
0 commit comments