mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-23 21:50:10 +08:00
Added captcha support
This commit is contained in:
parent
06f7f10dfe
commit
a1ef4b5646
5
index.js
5
index.js
@ -11,6 +11,7 @@ SteamCommunity.SteamID = SteamID;
|
||||
|
||||
function SteamCommunity() {
|
||||
this._jar = Request.jar();
|
||||
this._captchaGid = -1;
|
||||
this.request = Request.defaults({"jar": this._jar});
|
||||
this.chatState = SteamCommunity.ChatState.Offline;
|
||||
|
||||
@ -43,8 +44,8 @@ SteamCommunity.prototype.login = function(details, callback) {
|
||||
key.setPublic(json.publickey_mod, json.publickey_exp);
|
||||
|
||||
var form = {
|
||||
"captcha_text": "",
|
||||
"captchagid": -1,
|
||||
"captcha_text": details.captcha || "",
|
||||
"captchagid": self._captchaGid,
|
||||
"emailauth": details.authCode || "",
|
||||
"emailsteamid": "",
|
||||
"loginfriendlyname": "",
|
||||
|
Loading…
Reference in New Issue
Block a user