]>
git.proxmox.com Git - pmg-api.git/commitdiff
projects
/
pmg-api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a5bf5b
)
fix #4818: utils: Don't set minLength for username
author
Maximiliano Sandoval
<m.sandoval@proxmox.com>
Tue, 5 Sep 2023 12:54:43 +0000
(14:54 +0200)
committer
Stoiko 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
patch
|
blob
|
blame
|
history
diff --git
a/src/PMG/Utils.pm
b/src/PMG/Utils.pm
index d9c9d2d53ac48990f4c47cfebbbc48c71f841971..342c48d5ef774d6d71697d2a9c13ed4e357de063 100644
(file)
--- 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,
});