diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-05-16 16:55:47 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-05-23 09:09:20 +0200 |
commit | 8044edf30977149a1ad1ae3cdd4d3e1485fb4060 (patch) | |
tree | cc616b309f15812ab9715c36210cc83f670f9af3 /apps/user_ldap | |
parent | 6d56f3557d3eba4f41d0381c6f8fc8fda036a3b4 (diff) | |
download | nextcloud-server-8044edf30977149a1ad1ae3cdd4d3e1485fb4060.tar.gz nextcloud-server-8044edf30977149a1ad1ae3cdd4d3e1485fb4060.zip |
fix: Also search in email field for disabled users
To match what is done for Database backend for enabled users
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/User_Proxy.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/User_Proxy.php b/apps/user_ldap/lib/User_Proxy.php index 5f17548fac7..becdc1b4918 100644 --- a/apps/user_ldap/lib/User_Proxy.php +++ b/apps/user_ldap/lib/User_Proxy.php @@ -471,7 +471,8 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP fn (OfflineUser $user): bool => mb_stripos($user->getOCName(), $search) !== false || mb_stripos($user->getUID(), $search) !== false || - mb_stripos($user->getDisplayName(), $search) !== false, + mb_stripos($user->getDisplayName(), $search) !== false || + mb_stripos($user->getEmail(), $search) !== false, ); } return array_map( |