mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Reset temporary account credentials upon turning off bot for wrong ones
This commit is contained in:
@@ -2254,6 +2254,22 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
|
||||
// Likely permanently wrong account credentials
|
||||
LoginFailures = 0;
|
||||
|
||||
// Reset temporary login credentials, as user used wrong ones most likely, allow them to fix their mistake if they start the bot again
|
||||
if (!BotConfig.IsSteamLoginSet) {
|
||||
BotConfig.SteamLogin = null;
|
||||
BotConfig.IsSteamLoginSet = false;
|
||||
}
|
||||
|
||||
if (!BotConfig.IsSteamPasswordSet) {
|
||||
BotConfig.SteamPassword = null;
|
||||
BotConfig.IsSteamPasswordSet = false;
|
||||
}
|
||||
|
||||
if (!BotConfig.IsSteamParentalCodeSet) {
|
||||
BotConfig.SteamParentalCode = null;
|
||||
BotConfig.IsSteamParentalCodeSet = false;
|
||||
}
|
||||
|
||||
ArchiLogger.LogGenericError(Strings.FormatBotInvalidPasswordDuringLogin(MaxLoginFailures));
|
||||
|
||||
await Stop().ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user