fix(user_ldap): fix lastLogin reading wrong appid and configkey

fetchDetails() was calling getValueInt($uid, 'user_ldap', 'email')
instead of getValueInt($uid, 'login', 'lastLogin'), causing lastLogin
to always return 0 for offline LDAP users.

Fixes #58421

Signed-off-by: hamid <hamid@webpick.net>
This commit is contained in:
hamid 2026-04-03 10:36:34 +01:00 committed by backportbot[bot]
parent 4f2de60033
commit 353288de72

View file

@ -164,7 +164,7 @@ class OfflineUser {
$this->foundDeleted = $this->userConfig->getValueInt($this->ocName, 'user_ldap', 'foundDeleted');
$this->extStorageHome = $this->userConfig->getValueString($this->ocName, 'user_ldap', 'extStorageHome');
$this->email = $this->userConfig->getValueString($this->ocName, 'user_ldap', 'email');
$this->lastLogin = $this->userConfig->getValueInt($this->ocName, 'user_ldap', 'email');
$this->lastLogin = $this->userConfig->getValueInt($this->ocName, 'login', 'lastLogin');
}
/**