diff --git a/front/static/js/login.js b/front/static/js/login.js index cdef5f4..20b411d 100644 --- a/front/static/js/login.js +++ b/front/static/js/login.js @@ -22,6 +22,7 @@ function postToLoginEndpoint(event) { localStorage.setItem("token", token); window.location.replace("home.html"); } else { + document.getElementById("errorLogin").innerHTML = "Incorrect user name or password"; console.error("LOGIN FAILURE!"); console.error("Server status: " + this.status); console.error("Server response:\n" + this.response); diff --git a/front/static/login.html b/front/static/login.html index 03938ea..9a8af2f 100644 --- a/front/static/login.html +++ b/front/static/login.html @@ -31,6 +31,7 @@ +