mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-10-04 18:33:33 +00:00
api: user index: only include existing tfa lock flags
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
f63364a755
commit
53a2b71563
@ -221,7 +221,9 @@ __PACKAGE__->register_method ({
|
|||||||
|
|
||||||
if (defined($tfa_cfg)) {
|
if (defined($tfa_cfg)) {
|
||||||
if (my $data = $tfa_cfg->tfa_lock_status($user)) {
|
if (my $data = $tfa_cfg->tfa_lock_status($user)) {
|
||||||
$entry->{$_} = $data->{$_} for qw(totp-locked tfa-locked-until);
|
for (qw(totp-locked tfa-locked-until)) {
|
||||||
|
$entry->{$_} = $data->{$_} if exists($data->{$_});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user