From f464199be131d43fca953337d37169f9be25187e Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 29 Mar 2023 09:49:38 +0200 Subject: [PATCH] luci-theme-material: add again no password set hint This was accidentally deleted with commit: bec2c7e2b50e062575f3649ccd76b81af41b9820 Signed-off-by: Florian Eckert --- .../ucode/template/themes/material/header.ut | 8 +++++++- 1 file changed, 7 insertions(+), 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 24b2c73517..ed6a637978 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,13 @@
{% if (getuid() == 0 && getspnam('root')?.pwdp === ''): %} - +
+

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

+

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

+ {% if (dispatcher.lookup("admin/system/admin")): %} + + {% endif %} +
{% endif %} {% if (boardinfo?.rootfs_type == "initramfs"): %} -- 2.30.2