no need to list users if all users already had a key-pair

This commit is contained in:
Bjoern Schiessle 2015-09-24 12:47:46 +02:00
parent 330ea18996
commit 90f1e3dc94
1 changed files with 6 additions and 0 deletions

View File

@ -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();