summaryrefslogtreecommitdiffstats
path: root/apps/encryption
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-10-05 12:40:01 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-10-05 12:41:05 +0200
commitbf82015254941a74dfcd00d8b509a2f2a0734904 (patch)
treef3b4cd05aed7c71d1596dcce1ceb30bd685ff4b9 /apps/encryption
parentf4885f6da3048d90d44cd7e78b02e4305b0717dc (diff)
downloadnextcloud-server-bf82015254941a74dfcd00d8b509a2f2a0734904.tar.gz
nextcloud-server-bf82015254941a74dfcd00d8b509a2f2a0734904.zip
add some output to explain the pre-conditions for decrypt-all
Diffstat (limited to 'apps/encryption')
-rw-r--r--apps/encryption/lib/crypto/decryptall.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/encryption/lib/crypto/decryptall.php b/apps/encryption/lib/crypto/decryptall.php
index d7cd422c5e9..1daf3699d13 100644
--- a/apps/encryption/lib/crypto/decryptall.php
+++ b/apps/encryption/lib/crypto/decryptall.php
@@ -84,6 +84,9 @@ class DecryptAll {
$recoveryKeyId = $this->keyManager->getRecoveryKeyId();
if (!empty($user)) {
+ $output->writeln('You can only decrypt the users files if you know');
+ $output->writeln('the users password or if he activated the recovery key.');
+ $output->writeln('');
$questionUseLoginPassword = new ConfirmationQuestion(
'Do you want to use the users login password to decrypt all files? (y/n) ',
false
@@ -98,6 +101,9 @@ class DecryptAll {
$user = $recoveryKeyId;
}
} else {
+ $output->writeln('You can only decrypt the files of all users if the');
+ $output->writeln('recovery key is enabled by the admin and activated by the users.');
+ $output->writeln('');
$user = $recoveryKeyId;
}