[pmg-devel] [PATCH pmg-api 1/1] user config: password: unify length constraints and set minlength to 8
Stoiko Ivanov
s.ivanov at proxmox.com
Wed Feb 26 13:30:03 CET 2025
to be in line with the requirements from the newer ISO installers and
our recommendations.
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
src/PMG/API2/AccessControl.pm | 2 +-
src/PMG/UserConfig.pm | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/PMG/API2/AccessControl.pm b/src/PMG/API2/AccessControl.pm
index cf66c80..1e0d405 100644
--- a/src/PMG/API2/AccessControl.pm
+++ b/src/PMG/API2/AccessControl.pm
@@ -306,8 +306,8 @@ __PACKAGE__->register_method ({
password => {
description => "The new password.",
type => 'string',
- minLength => 5,
maxLength => 64,
+ minLength => 8,
},
}
},
diff --git a/src/PMG/UserConfig.pm b/src/PMG/UserConfig.pm
index 9a6f142..cf12645 100644
--- a/src/PMG/UserConfig.pm
+++ b/src/PMG/UserConfig.pm
@@ -144,8 +144,8 @@ delete $create_schema->{properties}->{username};
$create_schema->{properties}->{password} = {
description => "Password",
type => 'string',
- maxLength => 32,
- minLength => 5,
+ maxLength => 64,
+ minLength => 8,
optional => 1,
};
--
2.39.5
More information about the pmg-devel
mailing list