improved documentation of the methods
This commit is contained in:
parent
bab63c22ee
commit
5e508f1ccb
2 changed files with 4 additions and 1 deletions
|
@ -116,6 +116,8 @@ class Session {
|
||||||
* @brief Sets status if we tried to initialize the encyption app
|
* @brief Sets status if we tried to initialize the encyption app
|
||||||
* @param bool $privateKey true=initialized false=not initialized
|
* @param bool $privateKey true=initialized false=not initialized
|
||||||
* @return bool
|
* @return bool
|
||||||
|
*
|
||||||
|
* @note this doesn not indicate of the init was successful, we just remeber the try!
|
||||||
*/
|
*/
|
||||||
public function setInitialized($init) {
|
public function setInitialized($init) {
|
||||||
|
|
||||||
|
@ -130,6 +132,7 @@ class Session {
|
||||||
* @brief Gets status if we already tried to initialize the encryption app
|
* @brief Gets status if we already tried to initialize the encryption app
|
||||||
* @returns bool
|
* @returns bool
|
||||||
*
|
*
|
||||||
|
* @note this doesn not indicate of the init was successful, we just remeber the try!
|
||||||
*/
|
*/
|
||||||
public function getInitialized() {
|
public function getInitialized() {
|
||||||
if (!is_null(\OC::$session->get('encryptionInitialized'))) {
|
if (!is_null(\OC::$session->get('encryptionInitialized'))) {
|
||||||
|
|
|
@ -17,7 +17,7 @@ $util = new \OCA\Encryption\Util($view, $user);
|
||||||
$session = new \OCA\Encryption\Session($view);
|
$session = new \OCA\Encryption\Session($view);
|
||||||
|
|
||||||
$privateKeySet = $session->getPrivateKey() !== false;
|
$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();
|
$initialized = $session->getInitialized();
|
||||||
|
|
||||||
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
|
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
|
||||||
|
|
Loading…
Reference in a new issue