From 9971bea42ba6552508e117cfe5d14aa55821a826 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 14 Jul 2019 12:30:55 +0200 Subject: [PATCH] fix LoginRequester because of MS change --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 42b9037..f4b1369 100644 --- a/index.js +++ b/index.js @@ -178,7 +178,8 @@ try { 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], hpgrequestid: pregMatch(/"sessionId":"([^"]+)"/, response.body)[1], flowToken: pregMatch(/"sFT":"([^"]+)"/, response.body)[1], - LoginOptions: 1, + LoginOptions: 3 } KmsiRequester.options.form = data;