X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=src%2FPVE%2FCLI%2Fpveum.pm;h=95b5705a63ef4c9790460e9dc228190a2f7cbe84;hp=59297070066458cfd8da7e7250c5a27377ea8ee1;hb=dc547a1339a437e7893294ce3630a7b8f0d5db4e;hpb=6adcb18c0167d609aa86429935f47fa4af1bb33f diff --git a/src/PVE/CLI/pveum.pm b/src/PVE/CLI/pveum.pm index 5929707..95b5705 100755 --- a/src/PVE/CLI/pveum.pm +++ b/src/PVE/CLI/pveum.pm @@ -11,6 +11,7 @@ use PVE::API2::Role; use PVE::API2::ACL; use PVE::API2::AccessControl; use PVE::API2::Domains; +use PVE::API2::TFA; use PVE::CLIFormatter; use PVE::CLIHandler; use PVE::JSONSchema qw(get_standard_option); @@ -118,7 +119,7 @@ our $cmddef = { list => [ 'PVE::API2::User', 'index', [], {}, $print_api_result, $PVE::RESTHandler::standard_output_options], permissions => [ 'PVE::API2::AccessControl', 'permissions', ['userid'], {}, $print_perm_result, $PVE::RESTHandler::standard_output_options], tfa => { - delete => [ 'PVE::API2::AccessControl', 'change_tfa', ['userid'], { action => 'delete', key => undef, config => undef, response => undef, }, ], + delete => [ 'PVE::API2::TFA', 'change_tfa', ['userid'], { action => 'delete', key => undef, config => undef, response => undef, }, ], }, token => { add => [ 'PVE::API2::User', 'generate_token', ['userid', 'tokenid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options ],