diff options
| author | Bond_009 <Bond.009@outlook.com> | 2020-01-31 22:56:24 +0100 |
|---|---|---|
| committer | Bond_009 <Bond.009@outlook.com> | 2020-01-31 22:56:24 +0100 |
| commit | acc1846e3e40f800f3f2605c010d492e2612ee31 (patch) | |
| tree | 155ff59e86a80399a0148b378d663fb3560ff4d5 /Emby.Server.Implementations/Library/UserManager.cs | |
| parent | cd13f718fb52c507512615fad08e3c3670834163 (diff) | |
Allow changing capitalization of usernames
Diffstat (limited to 'Emby.Server.Implementations/Library/UserManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/UserManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/UserManager.cs b/Emby.Server.Implementations/Library/UserManager.cs index 656eeb145..fcf3ccede 100644 --- a/Emby.Server.Implementations/Library/UserManager.cs +++ b/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."); } |
