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:
commit
4c22492ea2
3 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue