Explorar o código

Reverted Comparison code for name check

JPVenson hai 3 meses
pai
achega
f07e1f4aae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
         }