summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-24 14:51:18 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-24 14:51:18 +0200
commit594a31d260451d237a864f9f679c14c17d183ad4 (patch)
treec8571bbae7c84616ccda190343152f687cf62b3d /apps
parentc11bfa91775152788430b417e15c927d618f55d6 (diff)
parent90f1e3dc94bc10ce4d2290dda730d5726fb13f17 (diff)
downloadnextcloud-server-594a31d260451d237a864f9f679c14c17d183ad4.tar.gz
nextcloud-server-594a31d260451d237a864f9f679c14c17d183ad4.zip
Merge pull request #19341 from owncloud/enc_all_improved_messages
no need to list users if all users already had a key-pair
Diffstat (limited to 'apps')
-rw-r--r--apps/encryption/lib/crypto/encryptall.php6
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();