5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-03-09 08:58:25 +03:00

fix #2457: ga: set-user-password: increase maxLength of password

SHA-512 crypted passwords are longer than 64 byte, and it also does
not make sense to limit passwords to such a short length.  Increase
to 1024, that should be enough for a while, but still limits maximal
password payload to avoid DOS or the like.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2019-11-11 16:18:45 +01:00 committed by Thomas Lamprecht
parent b924c4355e
commit ba728fb535

View File

@ -227,7 +227,7 @@ __PACKAGE__->register_method({
type => 'string',
description => 'The new password.',
minLength => 5,
maxLength => 64,
maxLength => 1024,
},
crypted => {
type => 'boolean',