nopaque/vre_www/website/js/index.js

17 lines
506 B
JavaScript
Raw Normal View History

2019-06-03 12:57:09 +00:00
/**
* Process the submit event from the login form.
*/
function LoginFormSubmitHandler() {
var loginFormPasswordElement;
var loginFormUserElement;
loginFormPasswordElement = document.getElementById("login-form-password");
loginFormUserElement = document.getElementById("login-form-user");
try {
login(loginFormPasswordElement.value, loginFormUserElement.value);
} catch(e) {
loginFormPasswordElement.classList.add("invalid");
loginFormUserElement.classList.add("invalid");
}
}