From 1805fb7b14dde735cf1938f5a536b32a0efab82f Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Thu, 20 Jan 2011 00:21:08 +0000 Subject: themes/freifunk-generic: show warning when no root password is set --- .../freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'themes/freifunk-generic/luasrc') 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 bb638d938..035ca16f3 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") +<%- if luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%> +
+ <%:No password set!%>
+ <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%> +
+<%- end -%>