]> git.proxmox.com Git - pve-manager-legacy.git/commit
ui: cert upload: fix private key field sending empty string
authorMax Carrara <m.carrara@proxmox.com>
Tue, 14 Mar 2023 15:08:39 +0000 (16:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Mar 2023 10:20:43 +0000 (11:20 +0100)
commit1fda8b12b15530154dd6c60872ac461050f74418
tree2528a052cb811851860803f7ebcd5022e4850bd7
parent02c159d26557648f23f0bee29b86b4d6313e6136
ui: cert upload: fix private key field sending empty string

The private key's field is now excluded from the upload form's
JSON data if it's left empty.

Prior to this change, the form still used an empty string for the
private key's field, even if no key was provided by the user.
Because the key's field is marked as optional in the upload cert
API endpoint, JSONSchema validation would therefore fail.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Max Carrara <m.carrara@proxmox.com>
www/manager6/node/Certificates.js