diff --git a/login_form.php b/login_form.php index 9555f56f9..a8f6de746 100644 --- a/login_form.php +++ b/login_form.php @@ -7,6 +7,8 @@ + + @@ -34,6 +36,26 @@ function languageChange(elem) { exception_error("languageChange", e); } } + +function validateLoginForm(f) { + try { + + if (f.login.value.length == 0) { + new Effect.Highlight(f.login); + return false; + } + + if (f.password.value.length == 0) { + new Effect.Highlight(f.password); + return false; + } + + return true; + } catch (e) { + exception_error("validateLoginForm", e); + return true; + } +} -