no need to list users if all users already had a key-pair
This commit is contained in:
parent
330ea18996
commit
90f1e3dc94
|
@ -280,6 +280,12 @@ class EncryptAll {
|
||||||
$newPasswords[] = [$uid, $password];
|
$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->setRows($newPasswords);
|
||||||
$table->render();
|
$table->render();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue