From 58927dc937ab32f545f774a2fe762193cc0ef4bf Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Fri, 18 Mar 2016 23:29:17 -0400 Subject: [PATCH] Fixed fake error when removing 2FA (fixes #96) --- components/twofactor.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/components/twofactor.js b/components/twofactor.js index e549101..4a2057a 100644 --- a/components/twofactor.js +++ b/components/twofactor.js @@ -144,14 +144,8 @@ SteamCommunity.prototype.disableTwoFactor = function(revocationCode, callback) { return; } - if(body.response.status == 1) { - callback(null); - return; - } - - var error = new Error("Cannot remove authenticator (" + body.response.status + ")"); - error.eresult = body.response.status; - callback(error); + // success = true means it worked + callback(null); }, "steamcommunity"); }); };