mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 17:25:44 +00:00
17 lines
506 B
JavaScript
17 lines
506 B
JavaScript
|
/**
|
||
|
* 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");
|
||
|
}
|
||
|
}
|