From: Daniel Golle Date: Thu, 20 Sep 2012 02:16:57 +0000 (+0000) Subject: themes/openwrt.org: disable 'password not set' warning in failsafe mode X-Git-Tag: 0.11.0~55 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bce5060da6cdd93eb84850df02edf872b3611ad9;p=project%2Fluci.git themes/openwrt.org: disable 'password not set' warning in failsafe mode Signed-off-by: Daniel Golle --- diff --git a/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm index 3db844570d..8b29ecfa28 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 - <%- 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 -%>
<%:No password set!%>
<%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%>