Merge pull request #18300 from nextcloud/bug/18295/recovery-initialization
Fix Argument 3 passed to OCA\Encryption\Recovery::__construct() must …
This commit is contained in:
commit
3e720942e5
3 changed files with 0 additions and 6 deletions
|
@ -167,10 +167,8 @@ class Application extends \OCP\AppFramework\App {
|
||||||
return new Recovery(
|
return new Recovery(
|
||||||
$server->getUserSession(),
|
$server->getUserSession(),
|
||||||
$c->query('Crypt'),
|
$c->query('Crypt'),
|
||||||
$server->getSecureRandom(),
|
|
||||||
$c->query('KeyManager'),
|
$c->query('KeyManager'),
|
||||||
$server->getConfig(),
|
$server->getConfig(),
|
||||||
$server->getEncryptionKeyStorage(),
|
|
||||||
$server->getEncryptionFilesHelper(),
|
$server->getEncryptionFilesHelper(),
|
||||||
new View());
|
new View());
|
||||||
});
|
});
|
||||||
|
|
|
@ -30,12 +30,10 @@ namespace OCA\Encryption;
|
||||||
use OC\Files\View;
|
use OC\Files\View;
|
||||||
use OCA\Encryption\Crypto\Crypt;
|
use OCA\Encryption\Crypto\Crypt;
|
||||||
use OCP\Encryption\IFile;
|
use OCP\Encryption\IFile;
|
||||||
use OCP\Encryption\Keys\IStorage;
|
|
||||||
use OCP\IConfig;
|
use OCP\IConfig;
|
||||||
use OCP\IUser;
|
use OCP\IUser;
|
||||||
use OCP\IUserSession;
|
use OCP\IUserSession;
|
||||||
use OCP\PreConditionNotMetException;
|
use OCP\PreConditionNotMetException;
|
||||||
use OCP\Security\ISecureRandom;
|
|
||||||
|
|
||||||
class Recovery {
|
class Recovery {
|
||||||
|
|
||||||
|
|
|
@ -215,10 +215,8 @@ class ChangePasswordController extends Controller {
|
||||||
$recovery = new \OCA\Encryption\Recovery(
|
$recovery = new \OCA\Encryption\Recovery(
|
||||||
\OC::$server->getUserSession(),
|
\OC::$server->getUserSession(),
|
||||||
$crypt,
|
$crypt,
|
||||||
\OC::$server->getSecureRandom(),
|
|
||||||
$keyManager,
|
$keyManager,
|
||||||
\OC::$server->getConfig(),
|
\OC::$server->getConfig(),
|
||||||
$keyStorage,
|
|
||||||
\OC::$server->getEncryptionFilesHelper(),
|
\OC::$server->getEncryptionFilesHelper(),
|
||||||
new \OC\Files\View());
|
new \OC\Files\View());
|
||||||
$recoveryAdminEnabled = $recovery->isRecoveryKeyEnabled();
|
$recoveryAdminEnabled = $recovery->isRecoveryKeyEnabled();
|
||||||
|
|
Loading…
Reference in a new issue