git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/users-groups: do not check validity of empty hashes
commit751c2ed6e4af9e525fe57b7c0f0ee8a611eab9fa authorrnhmjoj <rnhmjoj@inventati.org> dateSun 21 Jun 2020, 17:01 (6 years ago) parent900ae97
1 file changed+2−1
nixos/modules/config/users-groups.nix+2−1
nixos/modules/config/users-groups.nix+2−1
@@ -629,7 +629,8 @@ in {
629629 content = "${base64}${sep}${base64}";
630630 mcf = "^${sep}${scheme}${sep}${content}$";
631631 in
632− if (user.hashedPassword != null
632+ if (user.hashedPassword != null # login disabled
633+ && user.hashedPassword != "" # login without password
633634 && builtins.match mcf user.hashedPassword == null)
634635 then
635636 ''