From 9dc9b63282b8f7083ac4f682ac76fae3c521debb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 23 Nov 2010 01:13:13 +0000 Subject: [PATCH] themes/openwrt: suppress password warning on low privilege pages which have no access to /etc/passwd --- themes/openwrt/luasrc/view/themes/openwrt.org/header.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm index 1078c5176..1177fa078 100644 --- a/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm @@ -176,7 +176,7 @@ if tree.nodes[category] and tree.nodes[category].ucidata then - <%- if not luci.sys.user.getpasswd("root") then -%> + <%- if 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 and enable SSH.%> -- 2.11.0