]> git.proxmox.com Git - pve-access-control.git/blobdiff - src/PVE/API2/TFA.pm
tfa: update list_tfa return schema
[pve-access-control.git] / 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.',
+               },
            },
        },
     },