summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/settings-personal.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-09-02 11:26:11 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-09-02 11:26:11 +0200
commitbab63c22eea058ea619de5c021d16803ba48ab8d (patch)
tree6d0b7f2e0b343ef46f35968ac7d7c5e1ee6f4751 /apps/files_encryption/settings-personal.php
parentd7dca966a2a926be8b45ab337488143eac3ce9ba (diff)
downloadnextcloud-server-bab63c22eea058ea619de5c021d16803ba48ab8d.tar.gz
nextcloud-server-bab63c22eea058ea619de5c021d16803ba48ab8d.zip
encryption error messages, distinguish between a re-enabled encryption app and a password change from outside
Diffstat (limited to 'apps/files_encryption/settings-personal.php')
-rw-r--r--apps/files_encryption/settings-personal.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_encryption/settings-personal.php b/apps/files_encryption/settings-personal.php
index 589219f32ad..c0c91bdf652 100644
--- a/apps/files_encryption/settings-personal.php
+++ b/apps/files_encryption/settings-personal.php
@@ -16,7 +16,9 @@ $view = new \OC_FilesystemView('/');
$util = new \OCA\Encryption\Util($view, $user);
$session = new \OCA\Encryption\Session($view);
-$privateKeySet = $session->getPrivateKey() !== false;
+$privateKeySet = $session->getPrivateKey() !== false;
+// was the key successfully initialized during log-in
+$initialized = $session->getInitialized();
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
$recoveryEnabledForUser = $util->recoveryEnabledForUser();
@@ -31,6 +33,7 @@ if ($recoveryAdminEnabled || !$privateKeySet) {
$tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
$tmpl->assign('recoveryEnabledForUser', $recoveryEnabledForUser);
$tmpl->assign('privateKeySet', $privateKeySet);
+ $tmpl->assign('initialized', $initialized);
$result = $tmpl->fetchPage();
}