summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-12-05 22:54:42 +0100
committerGitHub <noreply@github.com>2020-12-05 22:54:42 +0100
commit48d6b6ed12920ec473eb3a7ef79898221608e522 (patch)
tree86b4d59cfcab6b4cfe017bc06e44751ffa1802b4 /modules
parented0d682e1306bef06c48d2c01d6b322079b1eb62 (diff)
parente54708a451c4095da82d7bfb025069603014a2ca (diff)
Merge pull request #4638 from fblaese/pwlogin
luci-base: hide "No password set!" notification if password login is disabled
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-base/luasrc/sys.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/sys.lua b/modules/luci-base/luasrc/sys.lua
index bf21b5f191..aa00766fb8 100644
--- a/modules/luci-base/luasrc/sys.lua
+++ b/modules/luci-base/luasrc/sys.lua
@@ -509,7 +509,7 @@ user.getuser = nixio.getpw
function user.getpasswd(username)
local pwe = nixio.getsp and nixio.getsp(username) or nixio.getpw(username)
local pwh = pwe and (pwe.pwdp or pwe.passwd)
- if not pwh or #pwh < 1 or pwh == "!" or pwh == "x" then
+ if not pwh or #pwh < 1 then
return nil, pwe
else
return pwh, pwe