Skip to content
This repository has been archived by the owner on Oct 29, 2018. It is now read-only.

Commit

Permalink
meh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Dietzer committed May 20, 2017
1 parent 3bc8afe commit 3449778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion speedport.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ Speedport.prototype._sendPassword = function (cb) {
self.cookieHeaders = [self.cookieHeaders];
}
self.cookieHeaders.push("derivedk=" + derivedk + "; path=/;");
self.cookieHeaders.push("challengev=" + self.challengev + "; path=/;");

var sid = res.headers['set-cookie'].toString().match(/^.*(SessionID_R3=[^;]*);.*/);
self.sessionID = sid[1];
Expand All @@ -295,7 +296,7 @@ Speedport.prototype._sendPassword = function (cb) {
return cb('Login failed');
}

self.cookie = self.sessionID + "; derivedk=" + derivedk;
self.cookie = "challengev=" + self.challengev + "; " + self.sessionID + "; derivedk=" + derivedk;

cb(null);
}));
Expand Down

0 comments on commit 3449778

Please sign in to comment.