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; }