themes/openwrt.org: display a warning if no root password is set
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Oct 2010 23:23:02 +0000 (23:23 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Oct 2010 23:23:02 +0000 (23:23 +0000)
themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm

index 91771a7..c78c254 100644 (file)
@@ -834,6 +834,7 @@ div.cbi-tab-descr {
        border: 1px solid #FF0000;
        background-color: #FFCCCC;
        padding: 5px;
        border: 1px solid #FF0000;
        background-color: #FFCCCC;
        padding: 5px;
+       margin-bottom: 5px;
 }
 
 #memorybar {
 }
 
 #memorybar {
index ccb01ec..0a32055 100644 (file)
@@ -168,3 +168,10 @@ else -%>
                        <%:You must enable Java Script in your browser or LuCI will not work properly.%>
                </div>
        </noscript>
                        <%: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 -%>