]> git.proxmox.com Git - pmg-api.git/blobdiff - src/PMG/Utils.pm
fix #4818: utils: Don't set minLength for username
[pmg-api.git] / 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,
 });