Use same device ID for all trade confirmation requests

This commit is contained in:
Alexander Corn 2016-01-18 18:38:50 -05:00
parent a51bd21153
commit 1276c71e4e
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ SteamCommunity.prototype.respondToConfirmation = function(confID, confKey, time,
function request(community, url, key, time, tag, params, json, callback) {
params = params || {};
params.p = "android:" + require('crypto').randomBytes(16).toString('hex');
params.p = SteamTotp.getDeviceID(community.steamID);
params.a = community.steamID.getSteamID64();
params.k = key;
params.t = time;

View File

@ -19,6 +19,6 @@
"xml2js": "^0.4.11",
"cheerio": "^0.19.0",
"async": "^1.4.2",
"steam-totp": "^1.0.0"
"steam-totp": "^1.3.0"
}
}