themes/openwrt.org: display a warning if no root password is set

This commit is contained in:
Jo-Philipp Wich 2010-10-11 23:23:02 +00:00
parent 051186345c
commit 5c54090fff
2 changed files with 8 additions and 0 deletions

View file

@ -834,6 +834,7 @@ div.cbi-tab-descr {
border: 1px solid #FF0000;
background-color: #FFCCCC;
padding: 5px;
margin-bottom: 5px;
}
#memorybar {

View file

@ -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 -%>