themes/openwrt: suppress password warning on low privilege pages which have no access to /etc/passwd
This commit is contained in:
parent
450bdd5a40
commit
9dc9b63282
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ if tree.nodes[category] and tree.nodes[category].ucidata then
|
||||||
</div>
|
</div>
|
||||||
</noscript>
|
</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">
|
<div class="errorbox">
|
||||||
<strong><%:No password set!%></strong><br />
|
<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.%>
|
<%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%>
|
||||||
|
|
Loading…
Reference in a new issue