]> git.proxmox.com Git - pmg-api.git/commit
UserConfig: virify: check username vs userid
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 9 Feb 2018 10:08:30 +0000 (11:08 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 15 Feb 2018 07:23:34 +0000 (08:23 +0100)
commit5ede024956dc307f06cfe741a2fcca21fecdfd83
treeab5f9f7ce94dbc907eb653fac6cb27d817af9395
parent71d9a7583b5c0a464372852b1132a11e39618a38
UserConfig: virify: check username vs userid

Since we have both userid and username in the schema and
both have a minimum length of 4, creating a user named 'foo'
was previously possible because the 'username' property was
not checked. Loading the file back in then failed because at
load time, the username 'foo' was too short.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PMG/UserConfig.pm