Added errormessage on faulty admin-login

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-12 15:25:49 +02:00
parent d93c4eb2e7
commit c11927de51
2 changed files with 5 additions and 1 deletions

View File

@@ -8,6 +8,10 @@ $(document).ready(function(){
$("#login_form").prepend("<input type='text' name='token' placeholder='Token' required autocomplete='off' />");
$("#login_form").attr("action", "/signup");
}
if(window.location.hash == "#failed") {
window.location.hash = "";
Materialize.toast("Couldn't find a user with that username or password..", 4000, "red lighten");
}
});