]> git.proxmox.com Git - pve-common.git/commit
JSONSchema: add TFA-secret format; support longer secrets
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 28 Oct 2019 11:20:40 +0000 (12:20 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 29 Oct 2019 05:26:55 +0000 (06:26 +0100)
commit6e2343254e680258fb8c564553a4f68ba45d517f
tree5a9aef40edd7f65d1dae98fc493982d85233c061
parent4074d3722c8c7e22acde55546ba6ab29a25e3055
JSONSchema: add TFA-secret format; support longer secrets

The old format used 16 base32 chars or 40 hex digits. Since they have
a common subset it's hard to distinguish them without the our
previous length constraints, so prefix a 'v2-' of the format to
support arbitrary lengths properly.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/JSONSchema.pm