Fix return value from User object to User ID
This commit is contained in:
parent
fe88a62d6e
commit
0a7ee7c3f7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue