[Modify user] Fix. Password form now sets mode to be cors
This commit is contained in:
parent
f586d57784
commit
e3c05368fb
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@
|
||||||
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.sso.skynet.ie/ldap/update', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify(object)
|
body: JSON.stringify(object),
|
||||||
|
mode: "cors"
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res.status === 200) {
|
if(res.status === 200) {
|
||||||
document.getElementById('formStatus').innerHTML = "<span style='background-color: green; color: white'>Success</span>";
|
document.getElementById('formStatus').innerHTML = "<span style='background-color: green; color: white'>Success</span>";
|
||||||
|
|
Loading…
Reference in a new issue