Fetch request complete

Signed-off-by: Eoghan Conlon <eoghanconlon73@skynet.ie>
This commit is contained in:
eoghanconlon73 2023-08-27 17:00:14 +01:00
parent 49a5878460
commit 0b3eaacef6

View file

@ -34,7 +34,11 @@
const urlParam = new URLSearchParams(url.search); const urlParam = new URLSearchParams(url.search);
const auth = urlParam.get("auth"); const auth = urlParam.get("auth");
const object = {auth: auth, pass: pass }; const object = {auth: auth, pass: pass };
alert(JSON.stringify(object)); fetch("https://api.account.skynet.ie/ldap/recover/auth", {
method: 'POST',
body: JSON.stringify(object),
mode: "cors"
})
} else { } else {
document.getElementById('formStatus').innerHTML = "<span style='background-color: red; color: white'>Failure: Passwords don't match</span>"; document.getElementById('formStatus').innerHTML = "<span style='background-color: red; color: white'>Failure: Passwords don't match</span>";
} }