diff --git a/src/PVE/API2/User.pm b/src/PVE/API2/User.pm index a2e5be0..2220d8f 100644 --- a/src/PVE/API2/User.pm +++ b/src/PVE/API2/User.pm @@ -36,6 +36,7 @@ register_standard_option('user-comment', { type => 'string', optional => 1 }); register_standard_option('user-keys', { description => "Keys for two factor auth (yubico).", type => 'string', + pattern => '[0-9a-zA-Z!=]{0,4096}', optional => 1, }); register_standard_option('group-list', {