summaryrefslogtreecommitdiff
path: root/src/jwebmail/templates/login.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/jwebmail/templates/login.html')
-rw-r--r--src/jwebmail/templates/login.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jwebmail/templates/login.html b/src/jwebmail/templates/login.html
index 2915de3..d73238d 100644
--- a/src/jwebmail/templates/login.html
+++ b/src/jwebmail/templates/login.html
@@ -26,7 +26,7 @@
</div>
{% endif %}
- <form name="login1" method="POST" class="pure-form pure-form-aligned jwm-round">
+ <form name="login1" id="login1" method="POST" class="pure-form pure-form-aligned jwm-round">
{{ login_form.csrf_token }}
@@ -74,10 +74,10 @@
{% block scripts %}
<script type="text/javascript">
- if (!document.login1.userid.value) {
- document.login1.userid.focus();
+ if (!document.forms.login1.username.value) {
+ document.forms.login1.username.focus();
} else {
- document.login1.password.focus();
+ document.forms.login1.password.focus();
}
</script>
{% endblock %}