From: Maximiliano Sandoval Date: Tue, 5 Sep 2023 12:54:43 +0000 (+0200) Subject: fix #4818: utils: Don't set minLength for username X-Git-Url: https://git.proxmox.com/?p=pmg-api.git;a=commitdiff_plain;h=c3856294e4e9f81fe2fc43891a488a56e1c8eacf fix #4818: utils: Don't set minLength for username This matches pve-access-control/src/PVE/Auth/Plugin.pm. Signed-off-by: Maximiliano Sandoval --- diff --git a/src/PMG/Utils.pm b/src/PMG/Utils.pm index d9c9d2d..342c48d 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, });