Hello,
I try to create an application to change user password using the javascript expression XMLHttpRequest
This method works in version 7.3.1, but does not work in version 7.4.1 and also in version 7.5.1
return function()
{
var xhr = new XMLHttpRequest();
if($data.newPasswordDetails.newPassword == $data.newPasswordDetails.confirmPassword)
{
xhr.open("PUT", "../API/identity/user/" + $data.currentUser.user_id, false);
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
var result = xhr.send(JSON.stringify({password:$data.newPasswordDetails.newPassword}));
console.log(xhr.status);
console.log(xhr.statusText);
console.log(xhr.responseText);
alert("Password Changed Successfully");
}
else
{
alert(“New Password Doesnot Match Confirm Password”);
}
}
Thanks