Fix case sensitivity edge case

This commit is contained in:
Collin Swisher
2025-12-08 17:41:48 -06:00
parent 4c5a3fbff3
commit 2e8d9a311b

View File

@@ -149,7 +149,7 @@ namespace Jellyfin.Server.Implementations.Users
ThrowIfInvalidUsername(newName);
if (user.Username.Equals(newName, StringComparison.OrdinalIgnoreCase))
if (user.Username.Equals(newName, StringComparison.Ordinal))
{
throw new ArgumentException("The new and old names must be different.");
}