From: Florian Eckert Date: Wed, 29 Mar 2023 07:49:38 +0000 (+0200) Subject: luci-theme-material: add again no password set hint X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f464199be131d43fca953337d37169f9be25187e;p=project%2Fluci.git luci-theme-material: add again no password set hint This was accidentally deleted with commit: bec2c7e2b50e062575f3649ccd76b81af41b9820 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 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"): %}