diff --git a/web/html/adduser.html b/web/html/adduser.html index 99f2af0..3568f01 100644 --- a/web/html/adduser.html +++ b/web/html/adduser.html @@ -124,7 +124,7 @@ diff --git a/web/js/addUser.js b/web/js/addUser.js index dd84e31..766d6d7 100644 --- a/web/js/addUser.js +++ b/web/js/addUser.js @@ -51,6 +51,10 @@ document.getElementById("addUser").addEventListener("click", function(){ switch(response.status){ case 201: idAlert="createUser" + var user = document.getElementById("pseudoUpdateInput").value; + if(user.length > 0){ + document.getElementById("displayUser").textContent=user; + } break; case 204: idAlert="notModified"