projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
themes: only check password for uid=0 pages, nobody cannot read shadow (#426)
[project/luci.git]
/
themes
/
bootstrap
/
luasrc
/
view
/
themes
/
bootstrap
/
header.htm
diff --git
a/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm
b/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm
index
60c7a6e
..
33e2e48
100644
(file)
--- 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>
</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>
<div class="container">
<div class="alert-message warning">
<h4><%:No password set!%></h4>