aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/UserController.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-02-19 18:30:18 +0000
committerJPVenson <github@jpb.email>2025-02-19 18:30:18 +0000
commitf07e1f4aaee9b61b07d1389107973ead146c639b (patch)
tree468df7f078684639258239afac7866176242e599 /Jellyfin.Api/Controllers/UserController.cs
parentd8030147ffea8bd6b2753ac52e56b92fb15a1b47 (diff)
Reverted Comparison code for name check
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 88e5d46ad..838578fab 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.OrdinalIgnoreCase))
+ if (!string.Equals(user.Username, updateUser.Name, StringComparison.Ordinal))
{
await _userManager.RenameUser(user, updateUser.Name).ConfigureAwait(false);
}