summaryrefslogtreecommitdiffhomepage
path: root/themes/bootstrap/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-06-06 10:44:55 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-06-06 10:44:55 +0000
commita71e4414875f5e6373887323f07f2d6c70bc1afa (patch)
tree886d2e3f8cd5f7413e5a5e3d61b1b94559add621 /themes/bootstrap/luasrc
parentba02ccc1a54a6fd949dd0009a43917ecd3dbaef3 (diff)
themes: only check password for uid=0 pages, nobody cannot read shadow (#426)
Diffstat (limited to 'themes/bootstrap/luasrc')
-rw-r--r--themes/bootstrap/luasrc/view/themes/bootstrap/header.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm
index 60c7a6ebc..33e2e48d2 100644
--- a/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm
+++ b/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm
@@ -190,7 +190,7 @@ You may obtain a copy of the License at
</header>
-<%- 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="container">
<div class="alert-message warning">
<h4><%:No password set!%></h4>