From 0f98403c163f57f1c69d388cd7de71173fc6f564 Mon Sep 17 00:00:00 2001 From: Anh Mai Date: Wed, 30 Sep 2020 17:43:00 +0700 Subject: [PATCH] feat: Add sessionid to form of parentalUnlock --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2f8a24a..05303e3 100644 --- a/index.js +++ b/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) {