From cfd4f21e56334eb9412329f0b1bf7a612d3b081e Mon Sep 17 00:00:00 2001 From: mg Date: Mon, 16 Sep 2019 20:41:52 -0300 Subject: [PATCH] Update test functions that weren't sending token. --- thrimbletrimmer/TestPage.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/thrimbletrimmer/TestPage.html b/thrimbletrimmer/TestPage.html index 0daf0a7..b4ef2e9 100644 --- a/thrimbletrimmer/TestPage.html +++ b/thrimbletrimmer/TestPage.html @@ -120,13 +120,17 @@ 'Accept': 'application/json', 'Content-Type': 'application/json' }, - body: JSON.stringify(document.getElementById("manualLink").value) + body: JSON.stringify({ + link: document.getElementById("manualLink").value, + token: user.getAuthResponse().id_token + }) }).then(data => console.log(data)); } function testReset() { fetch(document.getElementById("server").value+"/thrimshim/reset/"+document.getElementById("rowId").value, { - method: 'POST' + method: 'POST', + body: JSON.stringify({token: user.getAuthResponse().id_token}) }).then(data => console.log(data)); }