]> git.proxmox.com Git - pve-access-control.git/commitdiff
tfa: update list_tfa return schema
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 1 Jun 2023 10:26:10 +0000 (12:26 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 5 Jun 2023 10:59:32 +0000 (12:59 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/API2/TFA.pm

index a4ea6dd08272e2efa9805e5efef8940c977897ef..7b3f53d2662124ec792ab94dcfa965d423b87a2a 100644 (file)
@@ -290,6 +290,17 @@ __PACKAGE__->register_method ({
                    type => 'array',
                    items => $TYPED_TFA_ENTRY_SCHEMA,
                },
+               'totp-locked' => {
+                   type => 'boolean',
+                   optional => 1,
+                   description => 'True if the user is currently locked out of TOTP factors.',
+               },
+               'tfa-locked-until' => {
+                   type => 'integer',
+                   optional => 1,
+                   description =>
+                       'Contains a timestamp until when a user is locked out of 2nd factors.',
+               },
            },
        },
     },