Skip to content
Snippets Groups Projects
Commit fd1d904c authored by dzudaka's avatar dzudaka
Browse files

sessionStorage updated for new password and username

parent 9b4fd158
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,8 @@ document.getElementById("cancelButton").addEventListener("click", function(){
function editUser (event) {
event.preventDefault();
let newInformation = {
"newUsername":document.getElementById('newUsername').value;
"newPassword":document.getElementById('newPassword').value;
"newUsername":document.getElementById('newUsername').value,
"newPassword":document.getElementById('newPassword').value,
};
fetch('../api/user/'+sessionStorage.getItem("userId"), {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment