diff options
| author | Patrick Barron <barronpm@gmail.com> | 2021-02-16 20:41:53 -0500 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2021-02-16 20:41:53 -0500 |
| commit | 1171b5ab923e0a0ad6b412201ed7ba0d33f51229 (patch) | |
| tree | 01993c41ff6d9e198ace85699d8722f3f17a0202 | |
| parent | 91ee1b1d02944c0cd1b935261ebab08973e68260 (diff) | |
Fix user renaming logic
| -rw-r--r-- | Jellyfin.Server.Implementations/Users/UserManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs index d1de5408c..95736c37f 100644 --- a/Jellyfin.Server.Implementations/Users/UserManager.cs +++ b/Jellyfin.Server.Implementations/Users/UserManager.cs @@ -147,7 +147,7 @@ namespace Jellyfin.Server.Implementations.Users throw new ArgumentException("The new and old names must be different."); } - if (Users.Any(u => u.Id != user.Id && u.Username.Equals(newName, StringComparison.Ordinal))) + if (Users.Any(u => u.Id != user.Id && u.Username.Equals(newName, StringComparison.OrdinalIgnoreCase))) { throw new ArgumentException(string.Format( CultureInfo.InvariantCulture, |
