diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-09-24 12:47:46 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-09-24 12:47:46 +0200 |
commit | 90f1e3dc94bc10ce4d2290dda730d5726fb13f17 (patch) | |
tree | 7ac9941e744f334a25ada3b59e25789f9954598f /apps/encryption/lib | |
parent | 330ea18996f4f5bfcbaaebf641d6502757077c4d (diff) | |
download | nextcloud-server-90f1e3dc94bc10ce4d2290dda730d5726fb13f17.tar.gz nextcloud-server-90f1e3dc94bc10ce4d2290dda730d5726fb13f17.zip |
no need to list users if all users already had a key-pair
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r-- | apps/encryption/lib/crypto/encryptall.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/encryption/lib/crypto/encryptall.php b/apps/encryption/lib/crypto/encryptall.php index a0c69c13fdd..8e97fe341b4 100644 --- a/apps/encryption/lib/crypto/encryptall.php +++ b/apps/encryption/lib/crypto/encryptall.php @@ -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(); |