From a98bfec86fb38fd55835ac1152d8323bc463ccf6 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 4 Jun 2025 23:20:21 +0800 Subject: [PATCH] :necktie: Auth factor no longer include secret and config in response --- DysonNetwork.Sphere/Account/Account.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DysonNetwork.Sphere/Account/Account.cs b/DysonNetwork.Sphere/Account/Account.cs index 608991b..46fdab1 100644 --- a/DysonNetwork.Sphere/Account/Account.cs +++ b/DysonNetwork.Sphere/Account/Account.cs @@ -107,8 +107,8 @@ public class AccountAuthFactor : ModelBase { public Guid Id { get; set; } public AccountAuthFactorType Type { get; set; } - [MaxLength(8196)] public string? Secret { get; set; } - [Column(TypeName = "jsonb")] public Dictionary? Config { get; set; } = new(); + [JsonIgnore] [MaxLength(8196)] public string? Secret { get; set; } + [JsonIgnore] [Column(TypeName = "jsonb")] public Dictionary? Config { get; set; } = new(); /// /// The trustworthy stands for how safe is this auth factor.