+
Requête incorrecte
+
+ Utilisateur inexistant
diff --git a/web/js/home.js b/web/js/home.js
index 9f37a3a..10f3216 100644
--- a/web/js/home.js
+++ b/web/js/home.js
@@ -32,6 +32,10 @@ instance.get("users", {withCredentials: true, params :{ page:0, nbPages: nbPages
td[1].textContent = listData[i].pseudo
td[2].textContent = listData[i].email
td[3].textContent = listData[i].roles
+ trAll[i].addEventListener("click", function(e){
+ console.log(e.currentTarget)
+ });
+
}
});
@@ -43,3 +47,4 @@ document.getElementById("signout").addEventListener("click", function(){
}
});
});
+
diff --git a/web/js/login.js b/web/js/login.js
index a82204b..f11de11 100644
--- a/web/js/login.js
+++ b/web/js/login.js
@@ -10,6 +10,9 @@ document.getElementById("signin").addEventListener("submit", function(evt){
.catch(function(error){
switch (error.response.status){
+ case 400:
+ id = "alertRequest"
+ break;
case 406:
id = "alertPassword";
break;