diff --git a/scripts/js/login.js b/scripts/js/login.js index f73b3228..bea57e67 100644 --- a/scripts/js/login.js +++ b/scripts/js/login.js @@ -114,16 +114,10 @@ function doLogin(password) { }); } -$("#loginform").submit(e => { +$("#loginform").on("submit", event => { // Cancel the native submit event (prevent the form from being // submitted) because we want to do a two-step challenge-response login - e.preventDefault(); - - // Check if cookie checkbox is enabled - /* if (!$("#logincookie").is(":checked")) { - alert("Please consent to using a login cookie to be able to log in. It is necessary to keep you logged in between page reloads. You can end the session by clicking on the logout button in the top right menu at any time."); - return; - }*/ + event.preventDefault(); doLogin($("#current-password").val()); });