<div class="darkMask"></div>
<div id="maincontent">
<div class="container">
- <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and path ~= "admin-system-admin-password" then -%>
+ <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
+ <div class="alert-message warning">
+ <h4><%:No password set!%></h4>
+ <p><%:There is no password set on this router. Please configure a root password to protect the web interface.%></p>
+ <%- if disp.lookup("admin/system/admin") then -%>
+ <div class="right"><a class="btn" href="<%=url("admin/system/admin")%>"><%:Go to password configuration...%></a></div>
+ <%- end -%>
+ </div>
<%- end -%>
-
<noscript>
<div class="alert-message warning">
<h4><%:JavaScript required!%></h4>