From 79b11227495dda19e838a418641f95c658c4d241 Mon Sep 17 00:00:00 2001 From: yemkareems Date: Mon, 28 Oct 2024 15:49:05 +0530 Subject: [PATCH] fix: use Icrypto in place of Cypto Signed-off-by: yemkareems --- lib/private/Authentication/LoginCredentials/Store.php | 6 +++--- lib/private/Server.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/private/Authentication/LoginCredentials/Store.php b/lib/private/Authentication/LoginCredentials/Store.php index 210d1cc646347..927c1c29f637e 100644 --- a/lib/private/Authentication/LoginCredentials/Store.php +++ b/lib/private/Authentication/LoginCredentials/Store.php @@ -10,12 +10,12 @@ use OC\Authentication\Exceptions\PasswordlessTokenException; use OC\Authentication\Token\IProvider; -use OC\Security\Crypto; use OCP\Authentication\Exceptions\CredentialsUnavailableException; use OCP\Authentication\Exceptions\InvalidTokenException; use OCP\Authentication\LoginCredentials\ICredentials; use OCP\Authentication\LoginCredentials\IStore; use OCP\ISession; +use OCP\Security\ICrypto; use OCP\Session\Exceptions\SessionNotAvailableException; use OCP\Util; use Psr\Log\LoggerInterface; @@ -30,12 +30,12 @@ class Store implements IStore { /** @var IProvider|null */ private $tokenProvider; - /** @var Crypto */ + /** @var ICrypto */ private $crypto; public function __construct(ISession $session, LoggerInterface $logger, - Crypto $crypto, + ICrypto $crypto, ?IProvider $tokenProvider = null) { $this->session = $session; $this->logger = $logger; diff --git a/lib/private/Server.php b/lib/private/Server.php index fb8c0aa7eda7f..27a5f2662f822 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -451,7 +451,7 @@ public function __construct($webRoot, \OC\Config $config) { $tokenProvider = null; } $logger = $c->get(LoggerInterface::class); - $crypto = $c->get(Crypto::class); + $crypto = $c->get(ICrypto::class); return new Store($session, $logger, $crypto, $tokenProvider); }); $this->registerAlias(IStore::class, Store::class);