From ea1865117e94f50de26265003639c0401d1aa7a1 Mon Sep 17 00:00:00 2001 From: Gianluca Suriani Date: Fri, 6 Mar 2020 11:02:25 +0100 Subject: [PATCH 1/2] Updated the request link from AuthApi2 to AuthApi4 AuthApi2 returns a 404 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e64160f..28e1c7f 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ module.exports.login = (options) => { }, req = { method: 'POST', - uri: 'https://web.spaggiari.eu/auth/app/default/AuthApi2.php?a=aLoginPwd', + uri: 'https://web.spaggiari.eu/auth/app/default/AuthApi4.php?a=aLoginPwd', form: postData, json: true, resolveWithFullResponse: true, @@ -38,4 +38,4 @@ function parseCookies(cookies) { r[cookie.substr(0, 9)] = cookie.substr(10, 32) }); return r; -} \ No newline at end of file +} From 4ab659681d44847b76e123ea41fef856b8ac2fe7 Mon Sep 17 00:00:00 2001 From: Gianluca Suriani Date: Fri, 6 Mar 2020 11:11:35 +0100 Subject: [PATCH 2/2] Changed the request's uri --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 28e1c7f..21a84ab 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ module.exports.login = (options) => { }, req = { method: 'POST', - uri: 'https://web.spaggiari.eu/auth/app/default/AuthApi4.php?a=aLoginPwd', + uri: 'https://web.spaggiari.eu/auth-p7/app/default/AuthApi4.php?a=aLoginPwd', form: postData, json: true, resolveWithFullResponse: true,