Merge branch 'main' into '3-new-users-sign-up'

Merging in url changes

See merge request compsoc1/skynet/ldap/frontend!4
This commit is contained in:
eoghanconlon73 2023-08-07 17:13:26 +00:00
commit 4c22492ea2
3 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@
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 = {user: user, pass: pass, field: field, value: value}
fetch('https://api.sso.skynet.ie/ldap/update', { fetch('https://api.account.skynet.ie/ldap/update', {
method: 'POST', method: 'POST',
body: JSON.stringify(object), body: JSON.stringify(object),
mode: "cors" mode: "cors"

View file

@ -33,7 +33,7 @@
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 = {user: user, pass: pass, field: "userPassword", value: newPW}
fetch('https://api.sso.skynet.ie/ldap/update', { fetch('https://api.account.skynet.ie/ldap/update', {
method: 'POST', method: 'POST',
body: JSON.stringify(object), body: JSON.stringify(object),
mode: "cors" mode: "cors"

View file

@ -34,7 +34,7 @@
const auth = urlParam.get("auth"); const auth = urlParam.get("auth");
const user = formData.get("user"); const user = formData.get("user");
const object = {auth: auth, user: user, pass: pass}; const object = {auth: auth, user: user, pass: pass};
fetch('https://api.sso.skynet.ie/ldap/new/account', { fetch('https://api.account.skynet.ie/ldap/new/account', {
method: 'POST', method: 'POST',
body: JSON.stringify(object), body: JSON.stringify(object),
mode: "cors" mode: "cors"