mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Misc
This commit is contained in:
@@ -769,7 +769,7 @@ namespace ArchiSteamFarm {
|
|||||||
|
|
||||||
if (!BotDatabase.MobileAuthenticator.HasCorrectDeviceID) {
|
if (!BotDatabase.MobileAuthenticator.HasCorrectDeviceID) {
|
||||||
ArchiLogger.LogGenericWarning("Your DeviceID is incorrect or doesn't exist");
|
ArchiLogger.LogGenericWarning("Your DeviceID is incorrect or doesn't exist");
|
||||||
string deviceID = Program.GetUserInput(SharedInfo.EUserInputType.DeviceID);
|
string deviceID = Program.GetUserInput(SharedInfo.EUserInputType.DeviceID, BotName);
|
||||||
if (string.IsNullOrEmpty(deviceID)) {
|
if (string.IsNullOrEmpty(deviceID)) {
|
||||||
BotDatabase.MobileAuthenticator = null;
|
BotDatabase.MobileAuthenticator = null;
|
||||||
return;
|
return;
|
||||||
@@ -1825,7 +1825,7 @@ namespace ArchiSteamFarm {
|
|||||||
|
|
||||||
private bool InitializeLoginAndPassword(bool requiresPassword) {
|
private bool InitializeLoginAndPassword(bool requiresPassword) {
|
||||||
if (string.IsNullOrEmpty(BotConfig.SteamLogin)) {
|
if (string.IsNullOrEmpty(BotConfig.SteamLogin)) {
|
||||||
BotConfig.SteamLogin = Program.GetUserInput(SharedInfo.EUserInputType.Login);
|
BotConfig.SteamLogin = Program.GetUserInput(SharedInfo.EUserInputType.Login, BotName);
|
||||||
if (string.IsNullOrEmpty(BotConfig.SteamLogin)) {
|
if (string.IsNullOrEmpty(BotConfig.SteamLogin)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1835,7 +1835,7 @@ namespace ArchiSteamFarm {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
BotConfig.SteamPassword = Program.GetUserInput(SharedInfo.EUserInputType.Password);
|
BotConfig.SteamPassword = Program.GetUserInput(SharedInfo.EUserInputType.Password, BotName);
|
||||||
return !string.IsNullOrEmpty(BotConfig.SteamPassword);
|
return !string.IsNullOrEmpty(BotConfig.SteamPassword);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2195,7 +2195,7 @@ namespace ArchiSteamFarm {
|
|||||||
|
|
||||||
switch (callback.Result) {
|
switch (callback.Result) {
|
||||||
case EResult.AccountLogonDenied:
|
case EResult.AccountLogonDenied:
|
||||||
AuthCode = Program.GetUserInput(SharedInfo.EUserInputType.SteamGuard);
|
AuthCode = Program.GetUserInput(SharedInfo.EUserInputType.SteamGuard, BotName);
|
||||||
if (string.IsNullOrEmpty(AuthCode)) {
|
if (string.IsNullOrEmpty(AuthCode)) {
|
||||||
Stop();
|
Stop();
|
||||||
}
|
}
|
||||||
@@ -2203,7 +2203,7 @@ namespace ArchiSteamFarm {
|
|||||||
break;
|
break;
|
||||||
case EResult.AccountLoginDeniedNeedTwoFactor:
|
case EResult.AccountLoginDeniedNeedTwoFactor:
|
||||||
if (BotDatabase.MobileAuthenticator == null) {
|
if (BotDatabase.MobileAuthenticator == null) {
|
||||||
TwoFactorCode = Program.GetUserInput(SharedInfo.EUserInputType.TwoFactorAuthentication);
|
TwoFactorCode = Program.GetUserInput(SharedInfo.EUserInputType.TwoFactorAuthentication, BotName);
|
||||||
if (string.IsNullOrEmpty(TwoFactorCode)) {
|
if (string.IsNullOrEmpty(TwoFactorCode)) {
|
||||||
Stop();
|
Stop();
|
||||||
}
|
}
|
||||||
@@ -2232,7 +2232,7 @@ namespace ArchiSteamFarm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(BotConfig.SteamParentalPIN)) {
|
if (string.IsNullOrEmpty(BotConfig.SteamParentalPIN)) {
|
||||||
BotConfig.SteamParentalPIN = Program.GetUserInput(SharedInfo.EUserInputType.SteamParentalPIN);
|
BotConfig.SteamParentalPIN = Program.GetUserInput(SharedInfo.EUserInputType.SteamParentalPIN, BotName);
|
||||||
if (string.IsNullOrEmpty(BotConfig.SteamParentalPIN)) {
|
if (string.IsNullOrEmpty(BotConfig.SteamParentalPIN)) {
|
||||||
Stop();
|
Stop();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user