]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixes psalm error.
authorFaraz Samapoor <f.samapoor@gmail.com>
Sun, 4 Jun 2023 21:45:34 +0000 (01:15 +0330)
committerLouis <6653109+artonge@users.noreply.github.com>
Fri, 16 Jun 2023 17:29:40 +0000 (19:29 +0200)
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
core/Controller/LoginController.php

index 97b656667ff152cb84bf78099a51ea93938f46c1..c684b82d8dc53640e9ba295bfc654622a12d576d 100644 (file)
@@ -38,6 +38,7 @@ use OC\Authentication\Login\Chain;
 use OC\Authentication\Login\LoginData;
 use OC\Authentication\WebAuthn\Manager as WebAuthnManager;
 use OC\Security\Bruteforce\Throttler;
+use OC\User\Session;
 use OC_App;
 use OCP\AppFramework\Controller;
 use OCP\AppFramework\Http;
@@ -54,7 +55,6 @@ use OCP\ISession;
 use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\IUserManager;
-use OCP\IUserSession;
 use OCP\Notification\IManager;
 use OCP\Util;
 
@@ -67,7 +67,7 @@ class LoginController extends Controller {
                                                                private IUserManager $userManager,
                                                                private IConfig $config,
                                                                private ISession $session,
-                                                               private IUserSession $userSession,
+                                                               private Session $userSession,
                                                                private IURLGenerator $urlGenerator,
                                                                private Defaults $defaults,
                                                                private Throttler $throttler,