summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2012-09-20 02:16:57 +0000
committerDaniel Golle <daniel@makrotopia.org>2012-09-20 02:16:57 +0000
commitbce5060da6cdd93eb84850df02edf872b3611ad9 (patch)
treee451478fd3b4cc0c4e6ccb411b8415f9a39311d2
parent1dbb1da4d9a4ca24d92fe0fdc78e90ce0261e450 (diff)
themes/openwrt.org: disable 'password not set' warning in failsafe mode
Signed-off-by: Daniel Golle <dgolle@allnet.de>
-rw-r--r--themes/openwrt/luasrc/view/themes/openwrt.org/header.htm2
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 3db844570..8b29ecfa2 100644
--- a/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm
@@ -173,7 +173,7 @@ if tree.nodes[category] and tree.nodes[category].ucidata then
</div>
</noscript>
- <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
+ <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and not category=="failsafe" 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.%><br />