mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-14 21:10:28 +08:00
feat: Add sessionid to form of parentalUnlock
This commit is contained in:
parent
d9b6b55efc
commit
0f98403c16
4
index.js
4
index.js
@ -323,11 +323,13 @@ function generateSessionID() {
|
||||
|
||||
SteamCommunity.prototype.parentalUnlock = function(pin, callback) {
|
||||
var self = this;
|
||||
var sessionID = self.getSessionID();
|
||||
|
||||
this.httpRequestPost("https://steamcommunity.com/parental/ajaxunlock", {
|
||||
"json": true,
|
||||
"form": {
|
||||
"pin": pin
|
||||
"pin": pin,
|
||||
"sessionid": sessionID
|
||||
}
|
||||
}, function(err, response, body) {
|
||||
if(!callback) {
|
||||
|
Loading…
Reference in New Issue
Block a user