From 28ab29d2b932d57eb410adcf7d5b56c726048ebf Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Fri, 27 Oct 2023 23:51:16 +0200 Subject: [PATCH] add user --- web/html/adduser.html | 6 +++--- web/js/addUser.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) 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