themes/openwrt.org: display a warning if no root password is set
This commit is contained in:
parent
051186345c
commit
5c54090fff
2 changed files with 8 additions and 0 deletions
|
@ -834,6 +834,7 @@ div.cbi-tab-descr {
|
||||||
border: 1px solid #FF0000;
|
border: 1px solid #FF0000;
|
||||||
background-color: #FFCCCC;
|
background-color: #FFCCCC;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#memorybar {
|
#memorybar {
|
||||||
|
|
|
@ -168,3 +168,10 @@ else -%>
|
||||||
<%:You must enable Java Script in your browser or LuCI will not work properly.%>
|
<%:You must enable Java Script in your browser or LuCI will not work properly.%>
|
||||||
</div>
|
</div>
|
||||||
</noscript>
|
</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 -%>
|
||||||
|
|
Loading…
Reference in a new issue