浏览代码

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 1 年之前
父节点
当前提交
dd75f35a1a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
         }