feat: adjust any form that takes teh suers username and pass so its in the auth field.
Closes #8
This commit is contained in:
parent
7ab4419132
commit
ec5ecd504c
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@
|
||||||
const user = formData.get("user");
|
const user = formData.get("user");
|
||||||
const pass = formData.get("pass");
|
const pass = formData.get("pass");
|
||||||
const value = formData.get("value");
|
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', {
|
fetch('https://api.account.skynet.ie/ldap/update', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify(object),
|
body: JSON.stringify(object),
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
const pass = formData.get("pass");
|
const pass = formData.get("pass");
|
||||||
const newPW = formData.get("newPW");
|
const newPW = formData.get("newPW");
|
||||||
if (newPW === formData.get("newPWConfirm")) {
|
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', {
|
fetch('https://api.account.skynet.ie/ldap/update', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify(object),
|
body: JSON.stringify(object),
|
||||||
|
|
Loading…
Reference in a new issue