Skip login keys also when user provides details himself

This commit is contained in:
JustArchi
2018-12-01 01:53:21 +01:00
parent d5618452fc
commit a9691d04e7

View File

@@ -1592,7 +1592,7 @@ namespace ArchiSteamFarm {
if (BotConfig.UseLoginKeys) {
// Login keys are not guaranteed to be valid, we should use them only if we don't have full details available from the user
if (string.IsNullOrEmpty(BotConfig.DecryptedSteamPassword) || !HasMobileAuthenticator) {
if (string.IsNullOrEmpty(BotConfig.DecryptedSteamPassword) || (string.IsNullOrEmpty(AuthCode) && string.IsNullOrEmpty(TwoFactorCode) && !HasMobileAuthenticator)) {
loginKey = BotDatabase.LoginKey;
// Decrypt login key if needed