<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/ie7.css" /><![endif]-->
<% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" />
<% end -%>
-<script type="text/javascript" src="<%=resource%>/VarType.js"></script>
-<script type="text/javascript" src="<%=resource%>/XHTML1.js"></script>
-<script type="text/javascript" src="<%=resource%>/Dropdowns.js"></script>
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI</title>
</head>
</div>
</noscript>
- <%- if not luci.sys.user.getpasswd("root") then -%>
+ <%- if luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
<div class="errorbox">
<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.%>