summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-openwrt/luasrc
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-02-24 14:38:30 +0000
committerDaniel Golle <daniel@makrotopia.org>2021-02-24 14:40:10 +0000
commit4c64aedb3eb09358f20ce29b8bdccb872fb10099 (patch)
treefff520ca3a1ead7f0da308d40fd891ae8d1a0239 /themes/luci-theme-openwrt/luasrc
parentcea51acf6f3d56a30fecf05d470a2b7f6a340a09 (diff)
luci-mod-failsafe: kill old failsafe mod
It's been unmaintained for ages and became useless. Better just limit regular luci-mod-admin to only show basic functionality in case `ubus call system board` indicates we are running off initramfs. Singed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'themes/luci-theme-openwrt/luasrc')
-rw-r--r--themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
index fafd86f35e..5f79b386b2 100644
--- a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm
@@ -74,7 +74,7 @@
</div>
</noscript>
- <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and category ~= "failsafe" then -%>
+ <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
<div class="alert-message warning">
<h4><%:No password set!%></h4>
<p><%:There is no password set on this router. Please configure a root password to protect the web interface.%></p>