fix LoginRequester because of MS change
This commit is contained in:
parent
afe2ccd11a
commit
9971bea42b
5
index.js
5
index.js
|
@ -178,7 +178,8 @@ try {
|
||||||
|
|
||||||
LoginRequester.options.form = data;
|
LoginRequester.options.form = data;
|
||||||
|
|
||||||
LoginRequester.runCrawl('https://login.microsoftonline.com' + urlPost)
|
// LoginRequester.runCrawl('https://login.microsoftonline.com' + urlPost)
|
||||||
|
LoginRequester.runCrawl(urlPost)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -192,7 +193,7 @@ try {
|
||||||
ctx: pregMatch(/"sCtx":"([^"]+)"/, response.body)[1],
|
ctx: pregMatch(/"sCtx":"([^"]+)"/, response.body)[1],
|
||||||
hpgrequestid: pregMatch(/"sessionId":"([^"]+)"/, response.body)[1],
|
hpgrequestid: pregMatch(/"sessionId":"([^"]+)"/, response.body)[1],
|
||||||
flowToken: pregMatch(/"sFT":"([^"]+)"/, response.body)[1],
|
flowToken: pregMatch(/"sFT":"([^"]+)"/, response.body)[1],
|
||||||
LoginOptions: 1,
|
LoginOptions: 3
|
||||||
}
|
}
|
||||||
|
|
||||||
KmsiRequester.options.form = data;
|
KmsiRequester.options.form = data;
|
||||||
|
|
Reference in New Issue