From 353288de72b7643714de8b7693002c9ca46f490e Mon Sep 17 00:00:00 2001 From: hamid Date: Fri, 3 Apr 2026 10:36:34 +0100 Subject: [PATCH] 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 --- apps/user_ldap/lib/User/OfflineUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/User/OfflineUser.php b/apps/user_ldap/lib/User/OfflineUser.php index ee2906e4b6fad..5033623344b74 100644 --- a/apps/user_ldap/lib/User/OfflineUser.php +++ b/apps/user_ldap/lib/User/OfflineUser.php @@ -164,7 +164,7 @@ protected function fetchDetails(): void { $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'); } /**