"Eye candy for verify login"
This commit is contained in:
parent
1e33939bec
commit
a5c0b683d8
@ -50,11 +50,18 @@ function valid_input(obj) {
|
|||||||
|
|
||||||
function verify_login() {
|
function verify_login() {
|
||||||
// Verify login inputs
|
// Verify login inputs
|
||||||
login = document.getElementById('login').value;
|
login = document.getElementById('login');
|
||||||
password = document.getElementById('password').value;
|
password = document.getElementById('password');
|
||||||
if (login.length > 0 && password.length > 0) {
|
if (login.value.length > 0) {
|
||||||
|
valid_input(login);
|
||||||
|
if (password.value.length > 0) {
|
||||||
|
valid_input(password);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
invalid_input(password);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
invalid_input(login);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user