mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-23 21:50:10 +08:00
Use same device ID for all trade confirmation requests
This commit is contained in:
parent
a51bd21153
commit
1276c71e4e
@ -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;
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user