👔 Auth factor no longer include secret and config in response

This commit is contained in:
LittleSheep 2025-06-04 23:20:21 +08:00
parent eacb7c8f2f
commit a98bfec86f

View File

@ -107,8 +107,8 @@ public class AccountAuthFactor : ModelBase
{ {
public Guid Id { get; set; } public Guid Id { get; set; }
public AccountAuthFactorType Type { get; set; } public AccountAuthFactorType Type { get; set; }
[MaxLength(8196)] public string? Secret { get; set; } [JsonIgnore] [MaxLength(8196)] public string? Secret { get; set; }
[Column(TypeName = "jsonb")] public Dictionary<string, object>? Config { get; set; } = new(); [JsonIgnore] [Column(TypeName = "jsonb")] public Dictionary<string, object>? Config { get; set; } = new();
/// <summary> /// <summary>
/// The trustworthy stands for how safe is this auth factor. /// The trustworthy stands for how safe is this auth factor.