mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-19 15:58:39 +00:00
Misc
This commit is contained in:
@@ -330,7 +330,7 @@ internal static class Commands {
|
|||||||
CTwoFactor_AddAuthenticator_Response? response = await mobileAuthenticatorHandler.AddAuthenticator(bot.SteamID, deviceID).ConfigureAwait(false);
|
CTwoFactor_AddAuthenticator_Response? response = await mobileAuthenticatorHandler.AddAuthenticator(bot.SteamID, deviceID).ConfigureAwait(false);
|
||||||
|
|
||||||
if (response == null) {
|
if (response == null) {
|
||||||
return bot.Commands.FormatBotResponse(Strings.WarningFailed);
|
return bot.Commands.FormatBotResponse(Strings.FormatWarningFailedWithError(nameof(mobileAuthenticatorHandler.AddAuthenticator)));
|
||||||
}
|
}
|
||||||
|
|
||||||
EResult result = (EResult) response.status;
|
EResult result = (EResult) response.status;
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ internal sealed class MobileAuthenticatorHandler : ClientMsgHandler {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.Result == EResult.OK ? response.Body : null;
|
// We want to return the response even with failed EResult
|
||||||
|
return response.Body;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal async Task<CTwoFactor_FinalizeAddAuthenticator_Response?> FinalizeAuthenticator(ulong steamID, string activationCode, string authenticatorCode, ulong authenticatorTime) {
|
internal async Task<CTwoFactor_FinalizeAddAuthenticator_Response?> FinalizeAuthenticator(ulong steamID, string activationCode, string authenticatorCode, ulong authenticatorTime) {
|
||||||
@@ -113,6 +114,7 @@ internal sealed class MobileAuthenticatorHandler : ClientMsgHandler {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.Result == EResult.OK ? response.Body : null;
|
// We want to return the response even with failed EResult
|
||||||
|
return response.Body;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user