mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-10-04 06:58:44 +00:00
api: enforce a minimum length of 8 on new passwords
when creating new users or updating existing passwords this new minimum is enforced which aligns with NIST's latest recommendations [1]. [1]: https://pages.nist.gov/800-63-4/sp800-63b.html#passwordver Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
This commit is contained in:
parent
84599db265
commit
47b7e66764
@ -345,7 +345,7 @@ __PACKAGE__->register_method ({
|
|||||||
password => {
|
password => {
|
||||||
description => "The new password.",
|
description => "The new password.",
|
||||||
type => 'string',
|
type => 'string',
|
||||||
minLength => 5,
|
minLength => 8,
|
||||||
maxLength => 64,
|
maxLength => 64,
|
||||||
},
|
},
|
||||||
'confirmation-password' => $PVE::API2::TFA::OPTIONAL_PASSWORD_SCHEMA,
|
'confirmation-password' => $PVE::API2::TFA::OPTIONAL_PASSWORD_SCHEMA,
|
||||||
|
@ -272,7 +272,7 @@ __PACKAGE__->register_method ({
|
|||||||
description => "Initial password.",
|
description => "Initial password.",
|
||||||
type => 'string',
|
type => 'string',
|
||||||
optional => 1,
|
optional => 1,
|
||||||
minLength => 5,
|
minLength => 8,
|
||||||
maxLength => 64
|
maxLength => 64
|
||||||
},
|
},
|
||||||
groups => get_standard_option('group-list'),
|
groups => get_standard_option('group-list'),
|
||||||
|
Loading…
Reference in New Issue
Block a user