diff options
author | Andrew Dolgov <[email protected]> | 2007-11-21 18:43:55 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-11-21 18:43:55 +0100 |
commit | a0b9990ad420e4cf651dbdcd590a09785b279e0a (patch) | |
tree | 6b6766e0bc475ca3a662adf23bac2725a9b46719 | |
parent | f0b3ae06d9083a0c68e6066cc7c5beb1bd78155a (diff) |
disable submit button when login form is validated
-rw-r--r-- | login_form.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/login_form.php b/login_form.php index 5854078e9..090d53e98 100644 --- a/login_form.php +++ b/login_form.php @@ -50,6 +50,8 @@ function validateLoginForm(f) { return false; } + document.forms['loginForm']['click'].disabled = true; + return true; } catch (e) { exception_error("validateLoginForm", e); @@ -97,7 +99,7 @@ window.onload = init; <label for="remember_me">Remember me on this computer</label> </td></tr> --> <tr><td colspan="2" align="right" class="innerLoginCell"> - <input type="submit" class="button" value="<?php echo __('Login') ?>" name='click'> + <input type="submit" class="button" value="<?php echo __('Log in') ?>" name='click'> <input type="hidden" name="action" value="login"> <input type="hidden" name="rt" value="<?php if ($return_to != 'none') { echo $return_to; } ?>"> |