"Eye candy for verify login"

This commit is contained in:
Doug Le Tough 2017-11-26 10:07:09 +01:00
parent 1e33939bec
commit a5c0b683d8

View File

@ -50,11 +50,18 @@ function valid_input(obj) {
function verify_login() {
// Verify login inputs
login = document.getElementById('login').value;
password = document.getElementById('password').value;
if (login.length > 0 && password.length > 0) {
login = document.getElementById('login');
password = document.getElementById('password');
if (login.value.length > 0) {
valid_input(login);
if (password.value.length > 0) {
valid_input(password);
return true;
}
invalid_input(password);
return false;
}
invalid_input(login);
return false;
}