nixos/users-groups: do not check validity of empty hashes
This commit is contained in:
parent
900ae97569
commit
751c2ed6e4
@ -629,7 +629,8 @@ in {
|
||||
content = "${base64}${sep}${base64}";
|
||||
mcf = "^${sep}${scheme}${sep}${content}$";
|
||||
in
|
||||
if (user.hashedPassword != null
|
||||
if (user.hashedPassword != null # login disabled
|
||||
&& user.hashedPassword != "" # login without password
|
||||
&& builtins.match mcf user.hashedPassword == null)
|
||||
then
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user