mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-23 21:50:10 +08:00
Fixed empty string error when Steam Guard is needed
This commit is contained in:
parent
3402acb33a
commit
8bad7dd09f
6
index.js
6
index.js
@ -63,8 +63,10 @@ SteamCommunity.prototype.login = function(details, callback) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(!json.success) {
|
||||
callback(json.message);
|
||||
if(!json.success && json.emailauth_needed) {
|
||||
callback("Please provide the authorization code sent to your address at " + json.emaildomain);
|
||||
} else if(!json.success) {
|
||||
callback(json.message || "Unknown error");
|
||||
} else {
|
||||
var sessionID = generateSessionID();
|
||||
self._jar.setCookie(Request.cookie('sessionid=' + sessionID), 'http://steamcommunity.com');
|
||||
|
Loading…
Reference in New Issue
Block a user