summaryrefslogtreecommitdiffhomepage
path: root/themes/freifunk-generic/luasrc/view
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-01-20 00:21:08 +0000
committerManuel Munz <freifunk@somakoma.de>2011-01-20 00:21:08 +0000
commit1805fb7b14dde735cf1938f5a536b32a0efab82f (patch)
tree21b74b8040114319323b0383399edc9e7984daa4 /themes/freifunk-generic/luasrc/view
parenta30ea6c2a38587f6b123a39b0086b64d62f5d9b9 (diff)
themes/freifunk-generic: show warning when no root password is set
Diffstat (limited to 'themes/freifunk-generic/luasrc/view')
-rw-r--r--themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm6
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
index bb638d9382..035ca16f38 100644
--- a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
+++ b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
@@ -74,6 +74,12 @@ require("luci.http").prepare_content("application/xhtml+xml")
</div></div>
<![endif]-->
+<%- if luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
+ <div class="warning">
+ <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 -%>
<p class="skiplink">
<span id="skiplink1"><a href="#navigation"><%:skiplink1 Skip to navigation%></a></span>