From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-api 1/2] fix #4818: utils: Don't set minLength for username
Date: Tue, 5 Sep 2023 14:54:43 +0200 [thread overview]
Message-ID: <20230905125444.731999-1-m.sandoval@proxmox.com> (raw)
This matches pve-access-control/src/PVE/Auth/Plugin.pm.
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
src/PMG/Utils.pm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/PMG/Utils.pm b/src/PMG/Utils.pm
index c19b31f..88dcff7 100644
--- a/src/PMG/Utils.pm
+++ b/src/PMG/Utils.pm
@@ -110,8 +110,7 @@ PVE::JSONSchema::register_standard_option('userid', {
PVE::JSONSchema::register_standard_option('username', {
description => "Username (without realm)",
type => 'string',
- pattern => '[^\s:\/\@]{3,60}',
- minLength => 4,
+ pattern => '[^\s:\/\@]{1,60}',
maxLength => 64,
});
--
2.39.2
next reply other threads:[~2023-09-05 12:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-05 12:54 Maximiliano Sandoval [this message]
2023-09-05 12:54 ` [pmg-devel] [PATCH pmg-gui 2/2] fix #4818: Revert "UserEdit: add minLength of 4 to username field" Maximiliano Sandoval
2024-02-13 16:19 ` [pmg-devel] [PATCH pmg-api 1/2] fix #4818: utils: Don't set minLength for username Gabriel Goller
2024-02-14 6:22 ` [pmg-devel] applied-series: " Stoiko Ivanov
2024-02-14 10:20 ` Maximiliano Sandoval
2024-02-14 10:42 ` Maximiliano Sandoval
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=20230905125444.731999-1-m.sandoval@proxmox.com \
--to=m.sandoval@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal