summaryrefslogtreecommitdiffhomepage
path: root/themes/openwrt.org/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-11 23:23:02 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-11 23:23:02 +0000
commit5c54090fff91ec1ee25840635a806041c058c5a6 (patch)
tree233984ce2e4250ea61207eb034cbfca04494a287 /themes/openwrt.org/luasrc
parent051186345c250be79861e2e58419d35f873996a4 (diff)
themes/openwrt.org: display a warning if no root password is set
Diffstat (limited to 'themes/openwrt.org/luasrc')
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm7
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
index ccb01ec30f..0a32055f80 100644
--- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
@@ -168,3 +168,10 @@ else -%>
<%:You must enable Java Script in your browser or LuCI will not work properly.%>
</div>
</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 -%>