Skip to content

Commit

Permalink
fix: use Icrypto in place of Cypto
Browse files Browse the repository at this point in the history
Signed-off-by: yemkareems <[email protected]>
  • Loading branch information
yemkareems committed Oct 28, 2024
1 parent a74ef82 commit 79b1122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/private/Authentication/LoginCredentials/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 79b1122

Please sign in to comment.