diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-23 01:13:13 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-23 01:13:13 +0000 |
commit | 9dc9b63282b8f7083ac4f682ac76fae3c521debb (patch) | |
tree | 032abda1a6c94a1cdeab7010b6a2f53d7fd4aebd /themes | |
parent | 450bdd5a401388ed709a178ef4561d87c21c323b (diff) |
themes/openwrt: suppress password warning on low privilege pages which have no access to /etc/passwd
Diffstat (limited to 'themes')
-rw-r--r-- | themes/openwrt/luasrc/view/themes/openwrt.org/header.htm | 2 |
1 files changed, 1 insertions, 1 deletions
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 </div> </noscript> - <%- if not luci.sys.user.getpasswd("root") then -%> + <%- if luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%> <div class="errorbox"> <strong><%:No password set!%></strong><br /> <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%> |