diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2019-06-28 16:03:37 +0000 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2019-07-06 22:48:10 +0800 |
commit | 3a24c2dbaa9b781504bb2847153e2514bcbe717e (patch) | |
tree | 139ffdf076642a4e6eb425acddb89f111341c5b2 /modules/luci-base/luasrc/view/cbi/value.htm | |
parent | 609f5290c8d582def0a6334519f5e31aad19abde (diff) |
luci-base: hide autocomplete-preventing password input with bigger offset
Fixes openwrt/luci#2624
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'modules/luci-base/luasrc/view/cbi/value.htm')
-rw-r--r-- | modules/luci-base/luasrc/view/cbi/value.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/value.htm b/modules/luci-base/luasrc/view/cbi/value.htm index 27f3cb2bd9..144853fd9f 100644 --- a/modules/luci-base/luasrc/view/cbi/value.htm +++ b/modules/luci-base/luasrc/view/cbi/value.htm @@ -1,6 +1,6 @@ <%+cbi/valueheader%> <%- if self.password then -%> - <input type="password" style="position:absolute; left:-1000px" aria-hidden="true" tabindex="-1"<%= + <input type="password" style="position:absolute; left:-100000px" aria-hidden="true" tabindex="-1"<%= attr("name", "password." .. cbid) %> /> <%- end -%> |