mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-14 09:27:47 +00:00
api: user: add pattern for user keys option
While nowadays, most entries should be just 'x', there can also still
be legacy entries with 'x!u2f', 'x!yubico' and base32 encoded secrets.
For example, some users might be syncing them from LDAP.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
(cherry picked from commit 2dabf3c3ae
)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3f1331f0c5
commit
42476f0f65
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user