浏览代码

Merge pull request #2359 from Bond-009/username

Allow changing capitalization of usernames
dkanada 5 年之前
父节点
当前提交
fe325a6e73
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Emby.Server.Implementations/Library/UserManager.cs

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

@@ -668,7 +668,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.");
             }