]> git.proxmox.com Git - pve-access-control.git/blobdiff - src/PVE/API2/TFA.pm
catch incompatible tfa entries with a nice error
[pve-access-control.git] / src / PVE / API2 / TFA.pm
index 657a74ce1355e8b2251a7b42943f37085ee46e0b..be696e1f19ee891edc63af6b512c181b49497f92 100644 (file)
@@ -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') {