Ver Fonte

Reverted Comparison code for name check

JPVenson há 3 meses atrás
pai
commit
f07e1f4aae
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Jellyfin.Api/Controllers/UserController.cs

+ 1 - 1
Jellyfin.Api/Controllers/UserController.cs

@@ -390,7 +390,7 @@ public class UserController : BaseJellyfinApiController
             return StatusCode(StatusCodes.Status403Forbidden, "User update not allowed.");
         }
 
-        if (!string.Equals(user.Username, updateUser.Name, StringComparison.OrdinalIgnoreCase))
+        if (!string.Equals(user.Username, updateUser.Name, StringComparison.Ordinal))
         {
             await _userManager.RenameUser(user, updateUser.Name).ConfigureAwait(false);
         }