feat: Add sessionid to form of parentalUnlock

This commit is contained in:
Anh Mai 2020-09-30 17:43:00 +07:00
parent d9b6b55efc
commit 0f98403c16
No known key found for this signature in database
GPG Key ID: E80AEBF3B21F1BD1

View File

@ -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) {