cli: add 'tfa unlock' command

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-05-30 11:55:08 +02:00
parent 330b8dbbe1
commit ddf78dfbf3

View File

@ -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 ],