Page 1 of 1

$memberinfo and ldap

Posted: 2024-05-08 07:15
by sacgtdev
May I know how $memberinfo will works in ldap-enabled web? Is logic based onn $memberinfo[username] no longer works when ldap is enabled?

Re: $memberinfo and ldap

Posted: 2024-05-13 17:42
by a.gneady
$memberInfo (the array obtained from calling getMemberInfo(), and passed to most hook functions) should work as usual, whether LDAP is enabled or not. When LDAP is enabled, the AppGini app stores user data (username, and email, but not their password) in its internal membership_users table. $memberInfo includes those stored values.