mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 21:24:35 +04:00
lui-theme-material: add again no password set hint
This was accidentally deleted with commit:
bec2c7e2b5
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -78,9 +78,15 @@
|
|||||||
<div class="darkMask"></div>
|
<div class="darkMask"></div>
|
||||||
<div id="maincontent">
|
<div id="maincontent">
|
||||||
<div class="container">
|
<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 -%>
|
<%- end -%>
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
<div class="alert-message warning">
|
<div class="alert-message warning">
|
||||||
<h4><%:JavaScript required!%></h4>
|
<h4><%:JavaScript required!%></h4>
|
||||||
|
|||||||
Reference in New Issue
Block a user