all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pmg-devel] [PATCH pmg-api 1/2] fix #4818: utils: Don't set minLength for username
@ 2023-09-05 12:54 Maximiliano Sandoval
  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
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Maximiliano Sandoval @ 2023-09-05 12:54 UTC (permalink / raw)
  To: pmg-devel

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-14 10:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-05 12:54 [pmg-devel] [PATCH pmg-api 1/2] fix #4818: utils: Don't set minLength for username Maximiliano Sandoval
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

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