diff --git a/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/Commands.cs b/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/Commands.cs index bdcca3035..8bd90450b 100644 --- a/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/Commands.cs +++ b/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/Commands.cs @@ -330,7 +330,7 @@ internal static class Commands { CTwoFactor_AddAuthenticator_Response? response = await mobileAuthenticatorHandler.AddAuthenticator(bot.SteamID, deviceID).ConfigureAwait(false); if (response == null) { - return bot.Commands.FormatBotResponse(Strings.WarningFailed); + return bot.Commands.FormatBotResponse(Strings.FormatWarningFailedWithError(nameof(mobileAuthenticatorHandler.AddAuthenticator))); } EResult result = (EResult) response.status; diff --git a/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/MobileAuthenticatorHandler.cs b/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/MobileAuthenticatorHandler.cs index ac107bd9f..160e82efa 100644 --- a/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/MobileAuthenticatorHandler.cs +++ b/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/MobileAuthenticatorHandler.cs @@ -76,7 +76,8 @@ internal sealed class MobileAuthenticatorHandler : ClientMsgHandler { 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 FinalizeAuthenticator(ulong steamID, string activationCode, string authenticatorCode, ulong authenticatorTime) { @@ -113,6 +114,7 @@ internal sealed class MobileAuthenticatorHandler : ClientMsgHandler { return null; } - return response.Result == EResult.OK ? response.Body : null; + // We want to return the response even with failed EResult + return response.Body; } }