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-27 15:03:07 +0200 |
commit | 5fc46cd5163989ff75317b32cd9dcedc9e7e3e7f (patch) | |
tree | 1f52bb81bafd52acdf71a7d7f598534d4f39fe89 /lib/private/User | |
parent | 896c539705be3c420fd983e36a84ffac1c84ad94 (diff) | |
download | nextcloud-server-5fc46cd5163989ff75317b32cd9dcedc9e7e3e7f.tar.gz nextcloud-server-5fc46cd5163989ff75317b32cd9dcedc9e7e3e7f.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 'lib/private/User')
-rw-r--r-- | lib/private/User/Manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php index a316708ddef..96c77b22f76 100644 --- a/lib/private/User/Manager.php +++ b/lib/private/User/Manager.php @@ -355,7 +355,8 @@ class Manager extends PublicEmitter implements IUserManager { $users, fn (IUser $user): bool => mb_stripos($user->getUID(), $search) !== false || - mb_stripos($user->getDisplayName(), $search) !== false, + mb_stripos($user->getDisplayName(), $search) !== false || + mb_stripos($user->getEMailAddress() ?? '', $search) !== false, ); } |