diff --git a/web/html/adduser.html b/web/html/adduser.html index 3568f01..6526715 100644 --- a/web/html/adduser.html +++ b/web/html/adduser.html @@ -128,7 +128,7 @@ -
- Pseudo - + Pseudo +
diff --git a/web/js/addUser.js b/web/js/addUser.js index 766d6d7..c03578b 100644 --- a/web/js/addUser.js +++ b/web/js/addUser.js @@ -4,7 +4,7 @@ closeButton(); document.getElementById("addUser").addEventListener("click", function(){ - var updateProfil = ["pseudo", "email", "firstName", "birth", "password"]; + var updateProfil = ["username", "email", "firstName", "birth", "password"]; var updateOk = true; for (var i=0; i 0){ document.getElementById("displayUser").textContent=user; } @@ -68,7 +68,7 @@ document.getElementById("addUser").addEventListener("click", function(){ console.log(error); switch(error.response.status){ case 401: - listExist = [ "pseudo", "email" ]; + listExist = [ "username", "email" ]; for(var i=0; i