diff options
author | Viktor Tsvetkov <zwetvik@gmail.com> | 2021-12-24 14:36:35 +0300 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-10-15 15:31:47 +0300 |
commit | 3e9d9a9dbb045c24eb93643838f8e8e3b9074e4b (patch) | |
tree | 44a3a6bb932d4c93217b305a27333aaf30d7a8fd /themes | |
parent | 1586ac49f86b27dad8049a7c1dcf3566d10b3193 (diff) |
sysauth: add autocomplete and id attributes to login inputs
this let browser automatically fill according to HTML spec for input elements.
luci-theme-bootstrap and luci-base are affected.
Signed-off-by: Viktor Tsvetkov <zwetvik@gmail.com>
[indentation fix]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes')
-rw-r--r-- | themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/sysauth.htm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/sysauth.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/sysauth.htm index 8a97bbd104..72b04783bb 100644 --- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/sysauth.htm +++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/sysauth.htm @@ -17,13 +17,13 @@ <div class="cbi-value"> <label class="cbi-value-title" for="luci_username"><%:Username%></label> <div class="cbi-value-field"> - <input name="luci_username" type="text"<%=attr("value", duser)%>> + <input name="luci_username" id="luci_username" type="text" autocomplete="username" <%=attr("value", duser)%>> </div> </div> <div class="cbi-value"> <label class="cbi-value-title" for="luci_password"><%:Password%></label> <div class="cbi-value-field"> - <input name="luci_password" type="password"> + <input name="luci_password" id="luci_password" type="password" autocomplete="current-password"> </div> </div> </div> |