Explorar o código

Fix the is-local check when resetting the password

This fixes the check whether a warning should be logged when resetting
the password from outside the local network.

Fixes: #10059
Jan Müller hai 1 ano
pai
achega
dd75f35a1a
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

@@ -494,7 +494,7 @@ public class UserController : BaseJellyfinApiController
         var isLocal = HttpContext.IsLocal()
                       || _networkManager.IsInLocalNetwork(ip);
 
-        if (isLocal)
+        if (!isLocal)
         {
             _logger.LogWarning("Password reset process initiated from outside the local network with IP: {IP}", ip);
         }