mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-04-02 13:50:21 +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) {
|
SteamCommunity.prototype.parentalUnlock = function(pin, callback) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
var sessionID = self.getSessionID();
|
||||||
|
|
||||||
this.httpRequestPost("https://steamcommunity.com/parental/ajaxunlock", {
|
this.httpRequestPost("https://steamcommunity.com/parental/ajaxunlock", {
|
||||||
"json": true,
|
"json": true,
|
||||||
"form": {
|
"form": {
|
||||||
"pin": pin
|
"pin": pin,
|
||||||
|
"sessionid": sessionID
|
||||||
}
|
}
|
||||||
}, function(err, response, body) {
|
}, function(err, response, body) {
|
||||||
if(!callback) {
|
if(!callback) {
|
||||||
|
Loading…
Reference in New Issue
Block a user