From 0b3eaacef6b55421e0426f1b32191ddf372c9f07 Mon Sep 17 00:00:00 2001 From: Eoghan Conlon Date: Sun, 27 Aug 2023 17:00:14 +0100 Subject: [PATCH] Fetch request complete Signed-off-by: Eoghan Conlon --- src/recovery/reset.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/recovery/reset.html b/src/recovery/reset.html index cf2c7bf..535d88e 100644 --- a/src/recovery/reset.html +++ b/src/recovery/reset.html @@ -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 = "Failure: Passwords don't match"; }