]> git.proxmox.com Git - proxmox-backup.git/commitdiff
manager: add 'user tfa unlock' command
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 23 Jun 2023 11:56:50 +0000 (13:56 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Jun 2023 17:47:16 +0000 (19:47 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/bin/proxmox_backup_manager/user.rs

index 1a36f3936e24561ad1af780d81f70dc011ed1931..743c5d16f8816ba8aa0182ea5339d88917243369 100644 (file)
@@ -257,5 +257,11 @@ fn tfa_commands() -> CommandLineInterface {
                 .completion_cb("userid", pbs_config::user::complete_userid)
                 .completion_cb("id", proxmox_backup::config::tfa::complete_tfa_id),
         )
+        .insert(
+            "unlock",
+            CliCommand::new(&api2::access::user::API_METHOD_UNLOCK_TFA)
+                .arg_param(&["userid"])
+                .completion_cb("userid", pbs_config::user::complete_userid),
+        )
         .into()
 }