diff --git a/Ombi.Store/Repository/PlexUserRepository.cs b/Ombi.Store/Repository/PlexUserRepository.cs index 6ef713014..69bb31816 100644 --- a/Ombi.Store/Repository/PlexUserRepository.cs +++ b/Ombi.Store/Repository/PlexUserRepository.cs @@ -48,21 +48,24 @@ namespace Ombi.Store.Repository public PlexUsers GetUser(string userGuid) { var sql = @"SELECT * FROM PlexUsers - WHERE PlexUserId = @UserGuid"; + WHERE PlexUserId = @UserGuid + COLLATE NOCASE"; return Db.QueryFirstOrDefault(sql, new {UserGuid = userGuid}); } public PlexUsers GetUserByUsername(string username) { var sql = @"SELECT * FROM PlexUsers - WHERE Username = @UserName"; + WHERE Username = @UserName + COLLATE NOCASE"; return Db.QueryFirstOrDefault(sql, new {UserName = username}); } public async Task GetUserAsync(string userguid) { var sql = @"SELECT * FROM PlexUsers - WHERE PlexUserId = @UserGuid"; + WHERE PlexUserId = @UserGuid + COLLATE NOCASE"; return await Db.QueryFirstOrDefaultAsync(sql, new {UserGuid = userguid}); }