]> git.proxmox.com Git - pve-access-control.git/commitdiff
cli: add 'tfa unlock' command
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 30 May 2023 09:55:08 +0000 (11:55 +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/CLI/pveum.pm

index 7abb4843c670f2f72169a84400b914f4ab2e9ad5..62a17b0c1ef4e377a30780ea69dde6c3363c3a09 100755 (executable)
@@ -206,6 +206,7 @@ our $cmddef = {
        tfa => {
            delete => [ __PACKAGE__, 'delete_tfa', ['userid'] ],
            list => [ __PACKAGE__, 'list_tfa', ['userid'] ],
+           unlock => [ 'PVE::API2::User', 'unlock_tfa', ['userid'] ],
        },
        token => {
            add    => [ 'PVE::API2::User', 'generate_token', ['userid', 'tokenid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options ],