mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
[PS-1961] Fix Admin Email Search (#2466)
This commit is contained in:
parent
8ea3ae0b07
commit
3a201e7520
@ -47,7 +47,7 @@ public class UserRepository : Repository<Core.Entities.User, User, Guid>, IUserR
|
||||
{
|
||||
users = await GetDbSet(dbContext)
|
||||
.Where(e => e.Email == null ||
|
||||
EF.Functions.ILike(EF.Functions.Collate(e.Email, "default"), "a%"))
|
||||
EF.Functions.ILike(EF.Functions.Collate(e.Email, "default"), $"{email}%"))
|
||||
.OrderBy(e => e.Email)
|
||||
.Skip(skip).Take(take)
|
||||
.ToListAsync();
|
||||
|
Loading…
x
Reference in New Issue
Block a user