diff --git a/DysonNetwork.Pass/Account/ActionLog.cs b/DysonNetwork.Pass/Account/ActionLog.cs index 827ff20..837f365 100644 --- a/DysonNetwork.Pass/Account/ActionLog.cs +++ b/DysonNetwork.Pass/Account/ActionLog.cs @@ -1,5 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; +using System.Text.Json.Serialization; using DysonNetwork.Shared.Data; using DysonNetwork.Shared.Proto; using NodaTime.Serialization.Protobuf; @@ -14,7 +15,7 @@ public class ActionLog : ModelBase [Column(TypeName = "jsonb")] public Dictionary Meta { get; set; } = new(); [MaxLength(512)] public string? UserAgent { get; set; } [MaxLength(128)] public string? IpAddress { get; set; } - public Point? Location { get; set; } + [JsonIgnore] public Point? Location { get; set; } public Guid AccountId { get; set; } public Account Account { get; set; } = null!; diff --git a/DysonNetwork.Pass/Auth/AuthSession.cs b/DysonNetwork.Pass/Auth/AuthSession.cs index 8d4b157..8be39a1 100644 --- a/DysonNetwork.Pass/Auth/AuthSession.cs +++ b/DysonNetwork.Pass/Auth/AuthSession.cs @@ -69,7 +69,7 @@ public class AuthChallenge : ModelBase [MaxLength(128)] public string? IpAddress { get; set; } [MaxLength(512)] public string? UserAgent { get; set; } [MaxLength(1024)] public string? Nonce { get; set; } - public Point? Location { get; set; } + [JsonIgnore] public Point? Location { get; set; } public Guid AccountId { get; set; } [JsonIgnore] public Account.Account Account { get; set; } = null!;