From a277e639750c713854ae998417edb358bc46e550 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 25 Apr 2024 10:30:33 +0200 Subject: [PATCH] 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 --- .../ucode/template/themes/material/header.ut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.') }}

-- 2.30.2