Fetch request complete
Signed-off-by: Eoghan Conlon <eoghanconlon73@skynet.ie>
This commit is contained in:
parent
49a5878460
commit
0b3eaacef6
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@
|
|||
const urlParam = new URLSearchParams(url.search);
|
||||
const auth = urlParam.get("auth");
|
||||
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 {
|
||||
document.getElementById('formStatus').innerHTML = "<span style='background-color: red; color: white'>Failure: Passwords don't match</span>";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue