How do I edit the login page of OpenWrt?

Chrome auto password fill does not work with login field with <input class="cbi-input-text" type="text" name="luci_username" value="root" /> since it already populated. Is there any way I can remove the value="root" value from the HTML?

When you click on the password field, you should have a list of saved users for that site (well, IP here). Choose root and the password shall be filled in.

I know, I do it already but it would be nice to directly login using the login button. It was just a minor thought, it would be nice to have the username field without the root value.

I personally have used Lastpass for over 7 years.. It autofills, even when Chrome/Firefox won't.

Check out /usr/lib/lua/luci/view/sysauth.htm and see if that is what you are looking for..

1 Like

sed -i -e 's# value="<%=duser%>"##' /usr/lib/lua/luci/view/sysauth.htm

1 Like

starting with v23.05.0 it's now:

sed --in-place --expression 's/root//g' /usr/share/ucode/luci/dispatcher.uc