From: Jo-Philipp Wich Date: Tue, 23 Nov 2010 01:13:13 +0000 (+0000) Subject: themes/openwrt: suppress password warning on low privilege pages which have no access... X-Git-Tag: 0.10.0~383 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9dc9b63282b8f7083ac4f682ac76fae3c521debb;p=oweals%2Fluci.git themes/openwrt: suppress password warning on low privilege pages which have no access to /etc/passwd --- 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.%>