Browse Source
make master key the new default
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
pull/5174/head
Bjoern Schiessle
9 years ago
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
2 changed files with
2 additions and
1 deletions
-
apps/encryption/appinfo/info.xml
-
apps/encryption/lib/Util.php
|
|
|
@ -33,6 +33,7 @@ |
|
|
|
</settings> |
|
|
|
<commands> |
|
|
|
<command>OCA\Encryption\Command\EnableMasterKey</command> |
|
|
|
<command>OCA\Encryption\Command\DisableMasterKey</command> |
|
|
|
<command>OCA\Encryption\Command\MigrateKeys</command> |
|
|
|
</commands> |
|
|
|
</info> |
|
|
|
@ -136,7 +136,7 @@ class Util { |
|
|
|
* @return bool |
|
|
|
*/ |
|
|
|
public function isMasterKeyEnabled() { |
|
|
|
$userMasterKey = $this->config->getAppValue('encryption', 'useMasterKey', '0'); |
|
|
|
$userMasterKey = $this->config->getAppValue('encryption', 'useMasterKey', '1'); |
|
|
|
return ($userMasterKey === '1'); |
|
|
|
} |
|
|
|
|
|
|
|
|