Selaa lähdekoodia

Allow changing capitalization of usernames

Bond_009 5 vuotta sitten
vanhempi
sitoutus
acc1846e3e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Emby.Server.Implementations/Library/UserManager.cs

+ 1 - 1
Emby.Server.Implementations/Library/UserManager.cs

@@ -667,7 +667,7 @@ namespace Emby.Server.Implementations.Library
                 throw new ArgumentException("Invalid username", nameof(newName));
             }
 
-            if (user.Name.Equals(newName, StringComparison.OrdinalIgnoreCase))
+            if (user.Name.Equals(newName, StringComparison.Ordinal))
             {
                 throw new ArgumentException("The new and old names must be different.");
             }