diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2020-06-21 17:01:34 +0200 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2020-07-04 12:21:49 +0200 |
commit | 751c2ed6e4af9e525fe57b7c0f0ee8a611eab9fa (patch) | |
tree | 06d83db7e4c607b6ec3a17f7ef52a6608e87bb39 /nixos/modules/config | |
parent | 900ae9756902e4a3c53f32d4dee9ba1d995722df (diff) | |
download | nixpkgs-751c2ed6e4af9e525fe57b7c0f0ee8a611eab9fa.tar nixpkgs-751c2ed6e4af9e525fe57b7c0f0ee8a611eab9fa.tar.gz nixpkgs-751c2ed6e4af9e525fe57b7c0f0ee8a611eab9fa.tar.bz2 nixpkgs-751c2ed6e4af9e525fe57b7c0f0ee8a611eab9fa.tar.lz nixpkgs-751c2ed6e4af9e525fe57b7c0f0ee8a611eab9fa.tar.xz nixpkgs-751c2ed6e4af9e525fe57b7c0f0ee8a611eab9fa.tar.zst nixpkgs-751c2ed6e4af9e525fe57b7c0f0ee8a611eab9fa.zip |
nixos/users-groups: do not check validity of empty hashes
Diffstat (limited to 'nixos/modules/config')
-rw-r--r-- | nixos/modules/config/users-groups.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index c2b8b6b3163..e06514bd934 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -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 '' |