Merge pull request #19341 from owncloud/enc_all_improved_messages
no need to list users if all users already had a key-pair
This commit is contained in:
commit
594a31d260
1 changed files with 6 additions and 0 deletions
|
@ -280,6 +280,12 @@ class EncryptAll {
|
|||
$newPasswords[] = [$uid, $password];
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($newPasswords)) {
|
||||
$this->output->writeln("\nAll users already had a key-pair, no further action needed.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
$table->setRows($newPasswords);
|
||||
$table->render();
|
||||
|
||||
|
|
Loading…
Reference in a new issue