diff options
Diffstat (limited to 'lib/private/User/Manager.php')
-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, ); } |