From: Florian Eckert Date: Thu, 25 Apr 2024 08:30:33 +0000 (+0200) Subject: luci-theme-material: do not show the message 'no password' on the login page X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a277e639750c713854ae998417edb358bc46e550;p=project%2Fluci.git luci-theme-material: do not show the message 'no password' on the login page This note is also not displayed in the theme luci-theme-boostrap. Also, for security reasons, we should not explicitly point this out on the login page, that no password is set. Signed-off-by: Florian Eckert --- diff --git a/themes/luci-theme-material/ucode/template/themes/material/header.ut b/themes/luci-theme-material/ucode/template/themes/material/header.ut index 4a7e4cb8f1..b0c48b4736 100644 --- a/themes/luci-theme-material/ucode/template/themes/material/header.ut +++ b/themes/luci-theme-material/ucode/template/themes/material/header.ut @@ -73,7 +73,7 @@
- {% if (getuid() == 0 && getspnam('root')?.pwdp === ''): %} + {% if (getuid() == 0 && getspnam('root')?.pwdp === '' && ctx.authsession): %}

{{ _('No password set!') }}

{{ _('There is no password set on this router. Please configure a root password to protect the web interface.') }}