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 91771a78c3b296d658c2c9bc912d629dc8288887..c78c2543e5828eba28112da58ea02fa7f6a8d8e3 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 ccb01ec30f65a4ce806f62447083fd0c7b5477c5..0a32055f8085639ae31effbac62ba348ddd579d1 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 -%>