aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/UserController.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-01-29 20:17:50 +0000
committerJPVenson <github@jpb.email>2025-01-29 20:17:50 +0000
commit379a104cfbeaf3c3db5988865aa2db67875a76f1 (patch)
tree835f6fc01ea18ea622075b4512ba72c7292a76e1 /Jellyfin.Api/Controllers/UserController.cs
parentd07e1a13b315fe6ebccf5c89cacf1c8a94b13a5f (diff)
Changed UserName to non-deterministic field
Diffstat (limited to 'Jellyfin.Api/Controllers/UserController.cs')
-rw-r--r--Jellyfin.Api/Controllers/UserController.cs2
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);
}