fix: use Icrypto in place of Cypto

Signed-off-by: yemkareems <yemkareems@gmail.com>
This commit is contained in:
yemkareems 2024-10-28 15:49:05 +05:30
parent a74ef8237d
commit 79b1122749
No known key found for this signature in database
GPG key ID: 4293DA00B9478934
2 changed files with 4 additions and 4 deletions

View file

@ -10,12 +10,12 @@ namespace OC\Authentication\LoginCredentials;
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;

View file

@ -451,7 +451,7 @@ class Server extends ServerContainer implements IServerContainer {
$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);