X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=src%2FPVE%2FAPI2%2FTFA.pm;h=be696e1f19ee891edc63af6b512c181b49497f92;hp=657a74ce1355e8b2251a7b42943f37085ee46e0b;hb=93c1d74a62f3364672b155edf72636d0e496e4c6;hpb=92bca71e8606d9e077fa7261a77c4e56b4398556 diff --git a/src/PVE/API2/TFA.pm b/src/PVE/API2/TFA.pm index 657a74c..be696e1 100644 --- a/src/PVE/API2/TFA.pm +++ b/src/PVE/API2/TFA.pm @@ -185,6 +185,9 @@ __PACKAGE__->register_method({ if (!defined($tfa_type)) { raise('no u2f data available'); } + if ($tfa_type eq 'incompatible') { + raise('tfa entries incompatible with old login api'); + } eval { if ($tfa_type eq 'u2f') {