themes/openwrt.org: disable 'password not set' warning in failsafe mode
authorDaniel Golle <daniel@makrotopia.org>
Thu, 20 Sep 2012 02:16:57 +0000 (02:16 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 20 Sep 2012 02:16:57 +0000 (02:16 +0000)
Signed-off-by: Daniel Golle <dgolle@allnet.de>
themes/openwrt/luasrc/view/themes/openwrt.org/header.htm

index 3db844570d604f6e1469afadaa454cbb9f64dcf2..8b29ecfa285842b02a6ec819ee20e60f4251ea9a 100644 (file)
@@ -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 />