diff --git a/src/modify.html b/src/modify.html index 7a7220a..6bf131a 100644 --- a/src/modify.html +++ b/src/modify.html @@ -62,7 +62,7 @@ const user = formData.get("user"); const pass = formData.get("pass"); const value = formData.get("value"); - const object = {user: user, pass: pass, field: field, value: value} + const object = {auth: {user: user, pass: pass}, field: field, value: value} fetch('https://api.account.skynet.ie/ldap/update', { method: 'POST', body: JSON.stringify(object), diff --git a/src/password.html b/src/password.html index 9b53099..9a7e389 100644 --- a/src/password.html +++ b/src/password.html @@ -52,7 +52,7 @@ const pass = formData.get("pass"); const newPW = formData.get("newPW"); if (newPW === formData.get("newPWConfirm")) { - const object = {user: user, pass: pass, field: "userPassword", value: newPW} + const object = {auth: {user: user, pass: pass}, field: "userPassword", value: newPW} fetch('https://api.account.skynet.ie/ldap/update', { method: 'POST', body: JSON.stringify(object),