aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Müller <github@lonebyte.de>2023-07-31 21:49:51 +0200
committerJan Müller <github@lonebyte.de>2023-07-31 21:49:51 +0200
commitdd75f35a1a453541e4ca8cfe9422d3e39e9d668b (patch)
tree991059b9966010e639fcc4260d69a3b168004cee
parentd3c7af0d5c3709e18eac71fdb0279e985b6a9113 (diff)
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
-rw-r--r--Jellyfin.Api/Controllers/UserController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/UserController.cs b/Jellyfin.Api/Controllers/UserController.cs
index 4f61af35e..1be40111d 100644
--- a/Jellyfin.Api/Controllers/UserController.cs
+++ b/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);
}