summaryrefslogtreecommitdiffhomepage
path: root/modules/base/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-10-20 19:44:24 +0200
committerJo-Philipp Wich <jow@openwrt.org>2014-10-20 19:45:28 +0200
commitff65318ba52109f4ca7eb83a639ecddda2a8b3fc (patch)
treeacac1ceaace2664e29ba562b746aed81a94e55a3 /modules/base/luasrc/view
parentb83bbed9196e84ffb854f17410036e500a6f916b (diff)
modules/base: attempt to work around Firefox autocomplete bugs
Ref: https://dev.openwrt.org/ticket/18176 Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/base/luasrc/view')
-rw-r--r--modules/base/luasrc/view/sysauth.htm6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/base/luasrc/view/sysauth.htm b/modules/base/luasrc/view/sysauth.htm
index 7c39f0da51..e87f26c2c8 100644
--- a/modules/base/luasrc/view/sysauth.htm
+++ b/modules/base/luasrc/view/sysauth.htm
@@ -27,13 +27,13 @@ You may obtain a copy of the License at
<div class="cbi-value">
<label class="cbi-value-title"><%:Username%></label>
<div class="cbi-value-field">
- <input class="cbi-input-user" type="text" name="username" value="<%=duser%>" />
+ <input class="cbi-input-user" type="text" name="luci_username" value="<%=duser%>" />
</div>
</div>
<div class="cbi-value cbi-value-last">
<label class="cbi-value-title"><%:Password%></label>
<div class="cbi-value-field">
- <input id="focus_password" class="cbi-input-password" type="password" name="password" />
+ <input class="cbi-input-password" type="password" name="luci_password" />
</div>
</div>
</fieldset></fieldset>
@@ -45,7 +45,7 @@ You may obtain a copy of the License at
</div>
</form>
<script type="text/javascript">//<![CDATA[
- var input = document.getElementById('focus_password');
+ var input = document.getElementsByName('luci_password')[0];
if (input)
input.focus();
//]]></script>