]> source.dussan.org Git - nextcloud-server.git/commitdiff
manager checkPassword now returns User object, adjust internal user class accordingly.
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 25 Sep 2013 13:03:22 +0000 (15:03 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 25 Sep 2013 13:03:22 +0000 (15:03 +0200)
lib/user.php

index da774ff86f0bf7e6e7e6ba4dea8eb1834c6a7c36..b5fd418acd64d80e04bdd230a2c3f8db8936c80e 100644 (file)
@@ -419,7 +419,7 @@ class OC_User {
                $manager = self::getManager();
                $username = $manager->checkPassword($uid, $password);
                if ($username !== false) {
-                       return $manager->get($username)->getUID();
+                       return $username->getUID();
                }
                return false;
        }