mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-22 13:46:20 +08:00
Fixed enableTwoFactor returning success when it wasn't successful
This commit is contained in:
parent
6f596b5b16
commit
8f580fc231
@ -42,6 +42,13 @@ SteamCommunity.prototype.enableTwoFactor = function(callback) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(body.response.status != 1) {
|
||||
var error = new Error("Error " + body.response.status);
|
||||
error.eresult = body.response.status;
|
||||
callback(error);
|
||||
return;
|
||||
}
|
||||
|
||||
callback(null, body.response);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user