Fix Argument 3 passed to OCA\Encryption\Recovery::__construct() must be an instance of OCA\Encryption\KeyManager
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
8bc4295cfa
commit
8f403b66d1
3 changed files with 0 additions and 6 deletions
|
@ -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());
|
||||
});
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue