From 2bc80099bd2ab13082e19724fa95eacd56e80323 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 29 Mar 2023 08:59:27 +0200 Subject: [PATCH] lui-theme-material: add again no password set hint This was accidentally deleted with commit: bec2c7e2b50e062575f3649ccd76b81af41b9820 Signed-off-by: Florian Eckert --- .../luasrc/view/themes/material/header.htm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm index 2b890da034..47f7e4d5ed 100644 --- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm +++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm @@ -78,9 +78,15 @@
- <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and path ~= "admin-system-admin-password" then -%> + <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%> +
+

<%:No password set!%>

+

<%:There is no password set on this router. Please configure a root password to protect the web interface.%>

+ <%- if disp.lookup("admin/system/admin") then -%> + + <%- end -%> +
<%- end -%> -