summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-12-09 21:34:01 +0100
committerGitHub <noreply@github.com>2019-12-09 21:34:01 +0100
commit3e720942e58f99b038616d95e00a01ac9dd2f490 (patch)
tree5da99f4c0bef32144e0c08277abe14615a441e6c /apps
parent0360ab408e14a7f59f82380b8c2d70b837526651 (diff)
parent8f403b66d19011b1061430a9e82f1166c7bb7cd6 (diff)
downloadnextcloud-server-3e720942e58f99b038616d95e00a01ac9dd2f490.tar.gz
nextcloud-server-3e720942e58f99b038616d95e00a01ac9dd2f490.zip
Merge pull request #18300 from nextcloud/bug/18295/recovery-initialization
Fix Argument 3 passed to OCA\Encryption\Recovery::__construct() must …
Diffstat (limited to 'apps')
-rw-r--r--apps/encryption/lib/AppInfo/Application.php2
-rw-r--r--apps/encryption/lib/Recovery.php2
-rw-r--r--apps/settings/lib/Controller/ChangePasswordController.php2
3 files changed, 0 insertions, 6 deletions
diff --git a/apps/encryption/lib/AppInfo/Application.php b/apps/encryption/lib/AppInfo/Application.php
index 730b0afc0eb..6d7c00687e3 100644
--- a/apps/encryption/lib/AppInfo/Application.php
+++ b/apps/encryption/lib/AppInfo/Application.php
@@ -167,10 +167,8 @@ class Application extends \OCP\AppFramework\App {
return new Recovery(
$server->getUserSession(),
$c->query('Crypt'),
- $server->getSecureRandom(),
$c->query('KeyManager'),
$server->getConfig(),
- $server->getEncryptionKeyStorage(),
$server->getEncryptionFilesHelper(),
new View());
});
diff --git a/apps/encryption/lib/Recovery.php b/apps/encryption/lib/Recovery.php
index 8f50a3a5d28..d586d330237 100644
--- a/apps/encryption/lib/Recovery.php
+++ b/apps/encryption/lib/Recovery.php
@@ -30,12 +30,10 @@ namespace OCA\Encryption;
use OC\Files\View;
use OCA\Encryption\Crypto\Crypt;
use OCP\Encryption\IFile;
-use OCP\Encryption\Keys\IStorage;
use OCP\IConfig;
use OCP\IUser;
use OCP\IUserSession;
use OCP\PreConditionNotMetException;
-use OCP\Security\ISecureRandom;
class Recovery {
diff --git a/apps/settings/lib/Controller/ChangePasswordController.php b/apps/settings/lib/Controller/ChangePasswordController.php
index 0eba440ae4d..c374b3ff8bf 100644
--- a/apps/settings/lib/Controller/ChangePasswordController.php
+++ b/apps/settings/lib/Controller/ChangePasswordController.php
@@ -215,10 +215,8 @@ class ChangePasswordController extends Controller {
$recovery = new \OCA\Encryption\Recovery(
\OC::$server->getUserSession(),
$crypt,
- \OC::$server->getSecureRandom(),
$keyManager,
\OC::$server->getConfig(),
- $keyStorage,
\OC::$server->getEncryptionFilesHelper(),
new \OC\Files\View());
$recoveryAdminEnabled = $recovery->isRecoveryKeyEnabled();