SteamParentalPIN -> SteamParentalCode + fixes for @Aareksio

This commit is contained in:
JustArchi
2018-09-22 15:50:11 +02:00
parent dfc8473680
commit bd2e146bef
15 changed files with 154 additions and 139 deletions

View File

@@ -58,10 +58,8 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
return BadRequest(new GenericResponse(false, errorMessage));
}
if (request.KeepSensitiveDetails) {
if (string.IsNullOrEmpty(request.GlobalConfig.WebProxyPassword) && !string.IsNullOrEmpty(Program.GlobalConfig.WebProxyPassword)) {
request.GlobalConfig.WebProxyPassword = Program.GlobalConfig.WebProxyPassword;
}
if (!request.GlobalConfig.IsWebProxyPasswordSet && Program.GlobalConfig.IsWebProxyPasswordSet) {
request.GlobalConfig.WebProxyPassword = Program.GlobalConfig.WebProxyPassword;
}
request.GlobalConfig.ShouldSerializeEverything = false;