mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-07 16:10:11 +08:00
Fixed fake error when removing 2FA (fixes #96)
This commit is contained in:
parent
018cacac59
commit
58927dc937
@ -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");
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user