mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Use limiter also in 2FA case, #482
This commit is contained in:
@@ -731,14 +731,11 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
// Use limiter only when user is not providing 2FA token by himself
|
||||
if (string.IsNullOrEmpty(TwoFactorCode)) {
|
||||
await LimitLoginRequestsAsync().ConfigureAwait(false);
|
||||
await LimitLoginRequestsAsync().ConfigureAwait(false);
|
||||
|
||||
if (HasMobileAuthenticator) {
|
||||
// In this case, we can also use ASF 2FA for providing 2FA token, even if it's not required
|
||||
TwoFactorCode = await BotDatabase.MobileAuthenticator.GenerateToken().ConfigureAwait(false);
|
||||
}
|
||||
if (string.IsNullOrEmpty(TwoFactorCode) && HasMobileAuthenticator) {
|
||||
// In this case, we can also use ASF 2FA for providing 2FA token, even if it's not required
|
||||
TwoFactorCode = await BotDatabase.MobileAuthenticator.GenerateToken().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
if (!force && (!KeepRunning || SteamClient.IsConnected)) {
|
||||
|
||||
Reference in New Issue
Block a user