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.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=1805fb7b14dde735cf1938f5a536b32a0efab82f;hp=a30ea6c2a38587f6b123a39b0086b64d62f5d9b9 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 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") +<%- 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 -%>