Skip to content

Commit 6aaa258

Browse files
author
hamid
committed
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
1 parent ae45f67 commit 6aaa258

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/user_ldap/lib/User/OfflineUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ protected function fetchDetails(): void {
164164
$this->foundDeleted = $this->userConfig->getValueInt($this->ocName, 'user_ldap', 'foundDeleted');
165165
$this->extStorageHome = $this->userConfig->getValueString($this->ocName, 'user_ldap', 'extStorageHome');
166166
$this->email = $this->userConfig->getValueString($this->ocName, 'user_ldap', 'email');
167-
$this->lastLogin = $this->userConfig->getValueInt($this->ocName, 'user_ldap', 'email');
167+
$this->lastLogin = $this->userConfig->getValueInt($this->ocName, 'login', 'lastLogin');
168168
}
169169

170170
/**

0 commit comments

Comments
 (0)