mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
Merge pull request #224418 from jtojnar/users-validate-passwords-with-options
nixos/users-groups: Fix password scheme validation
This commit is contained in:
commit
814401390c
@ -733,8 +733,9 @@ in {
|
||||
sep = "\\$";
|
||||
base64 = "[a-zA-Z0-9./]+";
|
||||
id = cryptSchemeIdPatternGroup;
|
||||
name = "[a-z0-9-]+";
|
||||
value = "[a-zA-Z0-9/+.-]+";
|
||||
options = "${id}(=${value})?(,${id}=${value})*";
|
||||
options = "${name}(=${value})?(,${name}=${value})*";
|
||||
scheme = "${id}(${sep}${options})?";
|
||||
content = "${base64}${sep}${base64}(${sep}${base64})?";
|
||||
mcf = "^${sep}${scheme}${sep}${content}$";
|
||||
|
Loading…
Reference in New Issue
Block a user