]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix return value from User object to User ID
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 24 Sep 2013 12:11:47 +0000 (14:11 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 24 Sep 2013 12:11:47 +0000 (14:11 +0200)
lib/user.php

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