luci-base: ui.js: set `autocomplete="new-password"` for password fields
authorJo-Philipp Wich <jo@mein.io>
Wed, 7 Jun 2023 21:40:04 +0000 (23:40 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 7 Jun 2023 21:40:04 +0000 (23:40 +0200)
commit23a246e4b4d0a0959d16a1add3868361b78f3021
tree007539a65fba950f5d0927cbfbb0a205435a1361
parenta4a4273ca4297c19d143541155696e15291852d3
luci-base: ui.js: set `autocomplete="new-password"` for password fields

Attempt to prevent Firefox from randomly filling nonesense into arbitrary
password fields such as the WireGuard private key field by setting the
`autocomplete="new-password"` attribute on any password type fields.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js