summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-09-02 11:34:28 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-09-02 11:34:28 +0200
commit5e508f1ccbd3b83ed11f7eab35fea43e1583caf3 (patch)
tree3bba80367d01cfca2a50e25207ecbb5aebf74a7d
parentbab63c22eea058ea619de5c021d16803ba48ab8d (diff)
downloadnextcloud-server-5e508f1ccbd3b83ed11f7eab35fea43e1583caf3.tar.gz
nextcloud-server-5e508f1ccbd3b83ed11f7eab35fea43e1583caf3.zip
improved documentation of the methods
-rw-r--r--apps/files_encryption/lib/session.php3
-rw-r--r--apps/files_encryption/settings-personal.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/session.php b/apps/files_encryption/lib/session.php
index f5ce7083af0..648e6e9ab07 100644
--- a/apps/files_encryption/lib/session.php
+++ b/apps/files_encryption/lib/session.php
@@ -116,6 +116,8 @@ class Session {
* @brief Sets status if we tried to initialize the encyption app
* @param bool $privateKey true=initialized false=not initialized
* @return bool
+ *
+ * @note this doesn not indicate of the init was successful, we just remeber the try!
*/
public function setInitialized($init) {
@@ -130,6 +132,7 @@ class Session {
* @brief Gets status if we already tried to initialize the encryption app
* @returns bool
*
+ * @note this doesn not indicate of the init was successful, we just remeber the try!
*/
public function getInitialized() {
if (!is_null(\OC::$session->get('encryptionInitialized'))) {
diff --git a/apps/files_encryption/settings-personal.php b/apps/files_encryption/settings-personal.php
index c0c91bdf652..ffcb99602e2 100644
--- a/apps/files_encryption/settings-personal.php
+++ b/apps/files_encryption/settings-personal.php
@@ -17,7 +17,7 @@ $util = new \OCA\Encryption\Util($view, $user);
$session = new \OCA\Encryption\Session($view);
$privateKeySet = $session->getPrivateKey() !== false;
-// was the key successfully initialized during log-in
+// did we tried to initialize the keys for this session?
$initialized = $session->getInitialized();
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');