]> git.proxmox.com Git - proxmox.git/commit - proxmox-tfa/src/api/mod.rs
tfa: don't automatically drop empty recovery
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 18 Apr 2023 08:39:16 +0000 (10:39 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 8 May 2023 08:32:26 +0000 (10:32 +0200)
commitea1d023a61cf6f06bc221c6d0f0fc8538c2d0975
tree1d39a72b77e9dd3872dcd659cafc5408faa37148
parentb66ceaede01a185e35eab4637e1b28f3719cd477
tfa: don't automatically drop empty recovery

This should only ever be explicitly removed.

Similarly, include an empty array of recovery keys in the
tfa challenge, so that clients know about empty recoveries
rather than getting an empty challenge when there are no
other factors available.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-tfa/src/api/methods.rs
proxmox-tfa/src/api/mod.rs
proxmox-tfa/src/api/recovery.rs