]> git.proxmox.com Git - pmg-api.git/commitdiff
fix #4818: utils: Don't set minLength for username
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Tue, 5 Sep 2023 12:54:43 +0000 (14:54 +0200)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 13 Feb 2024 23:03:36 +0000 (00:03 +0100)
This matches pve-access-control/src/PVE/Auth/Plugin.pm.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
src/PMG/Utils.pm

index d9c9d2d53ac48990f4c47cfebbbc48c71f841971..342c48d5ef774d6d71697d2a9c13ed4e357de063 100644 (file)
@@ -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,
 });