mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
Changed UserName to non-deterministic field
This commit is contained in:
@@ -390,7 +390,7 @@ public class UserController : BaseJellyfinApiController
|
||||
return StatusCode(StatusCodes.Status403Forbidden, "User update not allowed.");
|
||||
}
|
||||
|
||||
if (!string.Equals(user.Username, updateUser.Name, StringComparison.Ordinal))
|
||||
if (!string.Equals(user.Username, updateUser.Name, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
await _userManager.RenameUser(user, updateUser.Name).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user