Allow changing capitalization of usernames

Fixes #17195
Adds a regression test
This commit is contained in:
Bond_009
2026-07-03 18:33:10 +02:00
parent ccc1712d10
commit 482cf4b8c3
2 changed files with 29 additions and 2 deletions

View File

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