1
0
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:
Justin Baur 2022-12-02 22:21:13 -05:00 committed by GitHub
parent 8ea3ae0b07
commit 3a201e7520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();