diff --git a/web/html/adduser.html b/web/html/adduser.html index 4565e32..d38de6a 100644 --- a/web/html/adduser.html +++ b/web/html/adduser.html @@ -120,27 +120,37 @@ + + + + diff --git a/web/html/user.html b/web/html/user.html index 3f98f81..4d3b390 100644 --- a/web/html/user.html +++ b/web/html/user.html @@ -125,49 +125,49 @@
diff --git a/web/js/addUser.js b/web/js/addUser.js index d22d242..671956a 100644 --- a/web/js/addUser.js +++ b/web/js/addUser.js @@ -1,5 +1,6 @@ checkToken(); signOut(); +closeButton(); document.getElementById("addUser").addEventListener("click", function(){ @@ -60,8 +61,15 @@ document.getElementById("addUser").addEventListener("click", function(){ } document.getElementById(idAlert+"Alert").classList.remove("hidden"); }).catch(function(error){ - switch(error.status){ + console.log(error); + switch(error.response.status){ case 401: + listExist = [ "pseudo", "email" ]; + for(var i=0; i