diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index bb270f256..2656383c2 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -96,6 +96,7 @@ namespace ArchiSteamFarm { private bool IsAccountLocked => AccountFlags.HasFlag(EAccountFlags.Lockdown); private string SentryFile => BotPath + ".bin"; + [JsonProperty] internal BotConfig BotConfig { get; private set; } [JsonProperty] diff --git a/ArchiSteamFarm/BotConfig.cs b/ArchiSteamFarm/BotConfig.cs index 3593540ea..bc776fb5c 100644 --- a/ArchiSteamFarm/BotConfig.cs +++ b/ArchiSteamFarm/BotConfig.cs @@ -172,6 +172,11 @@ namespace ArchiSteamFarm { // This constructor is used only by deserializer private BotConfig() { } + // Functions below are used for skipping serialization of sensitive fields in API response + public bool ShouldSerializeSteamLogin() => false; + public bool ShouldSerializeSteamParentalPIN() => false; + public bool ShouldSerializeSteamPassword() => false; + internal static BotConfig Load(string filePath) { if (string.IsNullOrEmpty(filePath)) { ASF.ArchiLogger.LogNullError(nameof(filePath));