git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
450bdd5
)
themes/openwrt: suppress password warning on low privilege pages which have no access...
author
Jo-Philipp Wich
<redacted>
Tue, 23 Nov 2010 01:13:13 +0000
(
01:13
+0000)
committer
Jo-Philipp Wich
<redacted>
Tue, 23 Nov 2010 01:13:13 +0000
(
01:13
+0000)
themes/openwrt/luasrc/view/themes/openwrt.org/header.htm
patch
|
blob
|
history
diff --git
a/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm
b/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm
index 1078c51760aee5ec08edd9317751e98594c863ce..1177fa078cdc986e07c5211ac82232ea0d406a6b 100644
(file)
--- 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.%>
git clone https://git.99rst.org/PROJECT