checkToken(); signOut(); closeButton(); document.getElementById("addUser").addEventListener("click", function(){ var updateProfil = ["username", "email", "firstName", "birth", "password"]; var updateOk = true; for (var i=0; i 0){ document.getElementById("displayUser").textContent=user; } break; case 204: idAlert="notModified" break; default: idAlert="unknown"; break } document.getElementById(idAlert+"Alert").classList.remove("hidden"); }).catch(function(error){ console.log(error); switch(error.response.status){ case 401: listExist = [ "username", "email" ]; for(var i=0; i