summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-09-24 14:11:47 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-09-24 14:11:47 +0200
commit0a7ee7c3f7b6825815a5aae1e41725481dbbfb08 (patch)
tree3a635ba73a7d1614ab51acd8c4ea43ef6a17b808 /lib/user.php
parentfe88a62d6e9ee4bb138ac4fb0fe81d8fbe082e09 (diff)
downloadnextcloud-server-0a7ee7c3f7b6825815a5aae1e41725481dbbfb08.tar.gz
nextcloud-server-0a7ee7c3f7b6825815a5aae1e41725481dbbfb08.zip
Fix return value from User object to User ID
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php
index 8868428ce24..ba6036bad96 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -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;
}