mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-30 01:04:32 +00:00
Misc
This commit is contained in:
@@ -2770,6 +2770,9 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string machineNameFormat = !string.IsNullOrEmpty(BotConfig.MachineName) ? BotConfig.MachineName : "{0} ({1}/{2})";
|
||||||
|
string machineName = string.Format(CultureInfo.CurrentCulture, machineNameFormat, Environment.MachineName, SharedInfo.PublicIdentifier, SharedInfo.Version);
|
||||||
|
|
||||||
ArchiLogger.LogGenericInfo(Strings.BotLoggingIn);
|
ArchiLogger.LogGenericInfo(Strings.BotLoggingIn);
|
||||||
|
|
||||||
InitConnectionFailureTimer();
|
InitConnectionFailureTimer();
|
||||||
@@ -2783,7 +2786,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
|
|||||||
CredentialsAuthSession authSession = await SteamClient.Authentication.BeginAuthSessionViaCredentialsAsync(
|
CredentialsAuthSession authSession = await SteamClient.Authentication.BeginAuthSessionViaCredentialsAsync(
|
||||||
new AuthSessionDetails {
|
new AuthSessionDetails {
|
||||||
Authenticator = new BotCredentialsProvider(this, authCancellationTokenSource),
|
Authenticator = new BotCredentialsProvider(this, authCancellationTokenSource),
|
||||||
DeviceFriendlyName = SharedInfo.PublicIdentifier,
|
DeviceFriendlyName = machineName,
|
||||||
GuardData = BotConfig.UseLoginKeys ? BotDatabase.SteamGuardData : null,
|
GuardData = BotConfig.UseLoginKeys ? BotDatabase.SteamGuardData : null,
|
||||||
IsPersistentSession = true,
|
IsPersistentSession = true,
|
||||||
Password = password,
|
Password = password,
|
||||||
@@ -2842,8 +2845,6 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
|
|||||||
UpdateTokens(pollResult.AccessToken, pollResult.RefreshToken);
|
UpdateTokens(pollResult.AccessToken, pollResult.RefreshToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
string machineNameFormat = !string.IsNullOrEmpty(BotConfig.MachineName) ? BotConfig.MachineName : "{0} ({1}/{2})";
|
|
||||||
|
|
||||||
SteamUser.LogOnDetails logOnDetails = new() {
|
SteamUser.LogOnDetails logOnDetails = new() {
|
||||||
AccessToken = RefreshToken,
|
AccessToken = RefreshToken,
|
||||||
CellID = ASF.GlobalDatabase?.CellID,
|
CellID = ASF.GlobalDatabase?.CellID,
|
||||||
@@ -2851,7 +2852,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
|
|||||||
ClientLanguage = CultureInfo.CurrentCulture.ToSteamClientLanguage(),
|
ClientLanguage = CultureInfo.CurrentCulture.ToSteamClientLanguage(),
|
||||||
GamingDeviceType = BotConfig.GamingDeviceType,
|
GamingDeviceType = BotConfig.GamingDeviceType,
|
||||||
LoginID = LoginID,
|
LoginID = LoginID,
|
||||||
MachineName = string.Format(CultureInfo.CurrentCulture, machineNameFormat, Environment.MachineName, SharedInfo.PublicIdentifier, SharedInfo.Version),
|
MachineName = machineName,
|
||||||
ShouldRememberPassword = BotConfig.UseLoginKeys,
|
ShouldRememberPassword = BotConfig.UseLoginKeys,
|
||||||
UIMode = BotConfig.UserInterfaceMode,
|
UIMode = BotConfig.UserInterfaceMode,
|
||||||
Username = username
|
Username = username
|
||||||
|
|||||||
Reference in New Issue
Block a user