diff options
| author | JPVenson <github@jpb.email> | 2025-01-29 20:17:50 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2025-01-29 20:17:50 +0000 |
| commit | 379a104cfbeaf3c3db5988865aa2db67875a76f1 (patch) | |
| tree | 835f6fc01ea18ea622075b4512ba72c7292a76e1 /Jellyfin.Api | |
| parent | d07e1a13b315fe6ebccf5c89cacf1c8a94b13a5f (diff) | |
Changed UserName to non-deterministic field
Diffstat (limited to 'Jellyfin.Api')
| -rw-r--r-- | Jellyfin.Api/Controllers/UserController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/UserController.cs b/Jellyfin.Api/Controllers/UserController.cs index 838578fab..88e5d46ad 100644 --- a/Jellyfin.Api/Controllers/UserController.cs +++ b/Jellyfin.Api/Controllers/UserController.cs @@ -390,7 +390,7 @@ public class UserController : BaseJellyfinApiController return StatusCode(StatusCodes.Status403Forbidden, "User update not allowed."); } - if (!string.Equals(user.Username, updateUser.Name, StringComparison.Ordinal)) + if (!string.Equals(user.Username, updateUser.Name, StringComparison.OrdinalIgnoreCase)) { await _userManager.RenameUser(user, updateUser.Name).ConfigureAwait(false); } |
