diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-06-06 10:44:55 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-06-06 10:44:55 +0000 |
commit | a71e4414875f5e6373887323f07f2d6c70bc1afa (patch) | |
tree | 886d2e3f8cd5f7413e5a5e3d61b1b94559add621 /themes/freifunk-generic/luasrc | |
parent | ba02ccc1a54a6fd949dd0009a43917ecd3dbaef3 (diff) |
themes: only check password for uid=0 pages, nobody cannot read shadow (#426)
Diffstat (limited to 'themes/freifunk-generic/luasrc')
-rw-r--r-- | themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm | 2 |
1 files changed, 1 insertions, 1 deletions
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 8787faed36..25068a2d18 100644 --- a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm +++ b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm @@ -94,7 +94,7 @@ You may obtain a copy of the License at </div></div> <![endif]--> -<%- if luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%> +<%- if luci.sys.process.info("uid") == 0 and 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.%> |