]> source.dussan.org Git - nextcloud-server.git/commitdiff
improved documentation of the methods
authorBjoern Schiessle <schiessle@owncloud.com>
Mon, 2 Sep 2013 09:34:28 +0000 (11:34 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Mon, 2 Sep 2013 09:34:28 +0000 (11:34 +0200)
apps/files_encryption/lib/session.php
apps/files_encryption/settings-personal.php

index f5ce7083af054f194095039a7c5e6e2286720c20..648e6e9ab07bb2e1c5f72f776d804e287ef3a36b 100644 (file)
@@ -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'))) {
index c0c91bdf6521bd2b0c2a5bcbcb939720556e6fd4..ffcb99602e2f6350affd7523a8b46d0d432572fa 100644 (file)
@@ -17,7 +17,7 @@ $util = new \OCA\Encryption\Util($view, $user);
 $session = new \OCA\Encryption\Session($view);\r
 \r
 $privateKeySet = $session->getPrivateKey() !== false;\r
-// was the key successfully initialized during log-in\r
+// did we tried to initialize the keys for this session?\r
 $initialized = $session->getInitialized();\r
 \r
 $recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');\r