summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-11 23:23:02 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-11 23:23:02 +0000
commit5c54090fff91ec1ee25840635a806041c058c5a6 (patch)
tree233984ce2e4250ea61207eb034cbfca04494a287
parent051186345c250be79861e2e58419d35f873996a4 (diff)
themes/openwrt.org: display a warning if no root password is set
-rw-r--r--themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css1
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm7
2 files changed, 8 insertions, 0 deletions
diff --git a/themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css b/themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css
index 91771a78c..c78c2543e 100644
--- a/themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css
+++ b/themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css
@@ -834,6 +834,7 @@ div.cbi-tab-descr {
border: 1px solid #FF0000;
background-color: #FFCCCC;
padding: 5px;
+ margin-bottom: 5px;
}
#memorybar {
diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
index ccb01ec30..0a32055f8 100644
--- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
@@ -168,3 +168,10 @@ else -%>
<%:You must enable Java Script in your browser or LuCI will not work properly.%>
</div>
</noscript>
+
+ <%- if 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.%>
+ </div>
+ <%- end -%>