mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-07-15 20:51:02 +00:00
use already parsed u2f property string
since libpve-cluster-perl 6.0-8 this happens automatically when parsing the datacenter.cfg, just like the other property strings stored there. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
158514a836
commit
cbe9d6ef92
@ -390,7 +390,6 @@ sub get_u2f_config() {
|
|||||||
my $dc = cfs_read_file('datacenter.cfg');
|
my $dc = cfs_read_file('datacenter.cfg');
|
||||||
my $u2f = $dc->{u2f};
|
my $u2f = $dc->{u2f};
|
||||||
die "u2f not configured in datacenter.cfg\n" if !$u2f;
|
die "u2f not configured in datacenter.cfg\n" if !$u2f;
|
||||||
$u2f = PVE::JSONSchema::parse_property_string($PVE::DataCenterConfig::u2f_format, $u2f);
|
|
||||||
return $u2f;
|
return $u2f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user