mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-09 18:00:28 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(body.response.status == 1) {
|
// success = true means it worked
|
||||||
callback(null);
|
callback(null);
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var error = new Error("Cannot remove authenticator (" + body.response.status + ")");
|
|
||||||
error.eresult = body.response.status;
|
|
||||||
callback(error);
|
|
||||||
}, "steamcommunity");
|
}, "steamcommunity");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user