Properly deal with #607, #586

This commit is contained in:
JustArchi
2017-08-09 18:58:51 +02:00
parent 953103719c
commit 5605e04f0a
2 changed files with 6 additions and 0 deletions

View File

@@ -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));