git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a30ea6c
)
themes/freifunk-generic: show warning when no root password is set
author
Manuel Munz
<redacted>
Thu, 20 Jan 2011 00:21:08 +0000
(
00:21
+0000)
committer
Manuel Munz
<redacted>
Thu, 20 Jan 2011 00:21:08 +0000
(
00:21
+0000)
themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
patch
|
blob
|
history
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 bb638d9382f0da9fb212427a0c4473b6bbac9c00..035ca16f38506497fdd169b88e9568586ec0bb1f 100644
(file)
--- 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>
git clone https://git.99rst.org/PROJECT