From: Manuel Munz Date: Thu, 20 Jan 2011 00:21:08 +0000 (+0000) Subject: themes/freifunk-generic: show warning when no root password is set X-Git-Tag: 0.11.0~2348 X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;h=1805fb7b14dde735cf1938f5a536b32a0efab82f;p=project%2Fluci.git themes/freifunk-generic: show warning when no root password is set --- 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 -%>