From d4de5aeac25c69e087fade6d0bdd57d0b86d3c54 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 25 Aug 2025 23:30:41 +0800 Subject: [PATCH] :bug: Fix api key exists cause regular login 500 --- DysonNetwork.Pass/Auth/AuthService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DysonNetwork.Pass/Auth/AuthService.cs b/DysonNetwork.Pass/Auth/AuthService.cs index bf14188..b5b8660 100644 --- a/DysonNetwork.Pass/Auth/AuthService.cs +++ b/DysonNetwork.Pass/Auth/AuthService.cs @@ -52,7 +52,7 @@ public class AuthService( riskScore += 1; else { - if (!string.IsNullOrEmpty(lastActiveInfo?.Challenge.IpAddress) && + if (!string.IsNullOrEmpty(lastActiveInfo?.Challenge?.IpAddress) && !lastActiveInfo.Challenge.IpAddress.Equals(ipAddress, StringComparison.OrdinalIgnoreCase)) riskScore += 1; }