themes: only check password for uid=0 pages, nobody cannot read shadow (#426)
[project/luci.git] / themes / bootstrap / luasrc / view / themes / bootstrap / header.htm
index 60c7a6ebcfca7bb160591cb0051c0a26c095430d..33e2e48d29ec2dfbb8308229eb17028e4a643d1f 100644 (file)
@@ -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>