Fixed fake error when removing 2FA (fixes #96)

This commit is contained in:
Alexander Corn 2016-03-18 23:29:17 -04:00
parent 018cacac59
commit 58927dc937

View File

@ -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");
});
};