瀏覽代碼

improved documentation of the methods

tags/v6.0.0alpha2
Bjoern Schiessle 10 年之前
父節點
當前提交
5e508f1ccb
共有 2 個檔案被更改,包括 4 行新增1 行删除
  1. 3
    0
      apps/files_encryption/lib/session.php
  2. 1
    1
      apps/files_encryption/settings-personal.php

+ 3
- 0
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'))) {

+ 1
- 1
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');

Loading…
取消
儲存