0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

nixos/tests/shadow: new hashes support with libxcrypt

This commit is contained in:
Franz Pletz 2022-09-26 22:45:24 +02:00 committed by Martin Weinelt
parent f9090d5862
commit 32e7482074
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 31 additions and 1 deletions

View file

@ -697,7 +697,7 @@ in {
value = "[a-zA-Z0-9/+.-]+";
options = "${id}(=${value})?(,${id}=${value})*";
scheme = "${id}(${sep}${options})?";
content = "${base64}${sep}${base64}";
content = "${base64}${sep}${base64}(${sep}${base64})?";
mcf = "^${sep}${scheme}${sep}${content}$";
in
if (allowsLogin user.hashedPassword