Merge pull request #15752 from Collin-Swish/fix-name-case-insensitivity

Fix case sensitivity edge case
This commit is contained in:
Bond-009
2025-12-12 21:39:22 +01:00
committed by GitHub

View File

@@ -149,7 +149,7 @@ namespace Jellyfin.Server.Implementations.Users
ThrowIfInvalidUsername(newName); 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."); throw new ArgumentException("The new and old names must be different.");
} }