]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also replace ApacheBackend with Authentication\IApacheBackend in user.
authorAndreas Fischer <bantu@owncloud.com>
Wed, 2 Oct 2013 13:11:49 +0000 (15:11 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Wed, 2 Oct 2013 13:11:49 +0000 (15:11 +0200)
lib/private/user.php

index 78f5dad75f959c87a62926129310bfec2c75d558..f7661f8d83ec45f06ce9a105eb7731f2c2a34945 100644 (file)
@@ -219,10 +219,10 @@ class OC_User {
         *
         * Log in a user and regenerate a new session.
         *
-        * @param \OCP\ApacheBackend $backend
+        * @param \OCP\Authentication\IApacheBackend $backend
         * @return bool
         */
-       public static function loginWithApache(\OCP\ApacheBackend $backend) {
+       public static function loginWithApache(\OCP\Authentication\IApacheBackend $backend) {
 
                $uid = $backend->getCurrentUserId();
                $run = true;
@@ -248,7 +248,7 @@ class OC_User {
         */
        public static function handleApacheAuth() {
                foreach (self::$_usedBackends as $backend) {
-                       if ($backend instanceof OCP\ApacheBackend) {
+                       if ($backend instanceof OCP\Authentication\IApacheBackend) {
                                if ($backend->isSessionActive()) {
                                        OC_App::loadApps();
 
@@ -320,7 +320,7 @@ class OC_User {
         */
        public static function getLogoutAttribute() {
                foreach (self::$_usedBackends as $backend) {
-                       if ($backend instanceof OCP\ApacheBackend) {
+                       if ($backend instanceof OCP\Authentication\IApacheBackend) {
                                if ($backend->isSessionActive()) {
                                        return $backend->getLogoutAttribute();
                                }