public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-api 1/1] user config: password: unify length constraints and set minlength to 8
Date: Wed, 26 Feb 2025 13:30:03 +0100	[thread overview]
Message-ID: <20250226123004.525433-2-s.ivanov@proxmox.com> (raw)
In-Reply-To: <20250226123004.525433-1-s.ivanov@proxmox.com>

to be in line with the requirements from the newer ISO installers and
our recommendations.

Signed-off-by: Stoiko Ivanov <s.ivanov@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



_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel


  reply	other threads:[~2025-02-26 12:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-26 12:30 [pmg-devel] [PATCH pmg-api/pmg-gui] align password length requirements with current recommendations Stoiko Ivanov
2025-02-26 12:30 ` Stoiko Ivanov [this message]
2025-02-26 12:53   ` [pmg-devel] applied: [PATCH pmg-api 1/1] user config: password: unify length constraints and set minlength to 8 Thomas Lamprecht
2025-02-26 12:30 ` [pmg-devel] [PATCH pmg-gui 1/1] user: create: set password minLength " Stoiko Ivanov
2025-02-26 12:55 ` [pmg-devel] [PATCH pmg-api/pmg-gui] align password length requirements with current recommendations Gabriel Goller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250226123004.525433-2-s.ivanov@proxmox.com \
    --to=s.ivanov@proxmox.com \
    --cc=pmg-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal