Fix issues where some user settings cannot be loaded when the user id differs in case sensitivity - fixes #25684 (#25686)
This commit is contained in:
parent
3647fbe7cd
commit
82e8762c84
|
@ -157,6 +157,16 @@ class Manager extends PublicEmitter implements IUserManager {
|
||||||
return $this->cachedUsers[$uid];
|
return $this->cachedUsers[$uid];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (method_exists($backend, 'loginName2UserName')) {
|
||||||
|
$loginName = $backend->loginName2UserName($uid);
|
||||||
|
if ($loginName !== false) {
|
||||||
|
$uid = $loginName;
|
||||||
|
}
|
||||||
|
if (isset($this->cachedUsers[$uid])) {
|
||||||
|
return $this->cachedUsers[$uid];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$user = new User($uid, $backend, $this, $this->config);
|
$user = new User($uid, $backend, $this, $this->config);
|
||||||
if ($cacheUser) {
|
if ($cacheUser) {
|
||||||
$this->cachedUsers[$uid] = $user;
|
$this->cachedUsers[$uid] = $user;
|
||||||
|
|
Loading…
Reference in New Issue