]> git.proxmox.com Git - pve-access-control.git/commitdiff
fix a 'use of undefined...' warning
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 6 Dec 2021 08:38:00 +0000 (09:38 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Dec 2021 12:55:14 +0000 (13:55 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/AccessControl.pm

index 168fc26b36acc2c775582cf350e6488a64840329..51a96a38d9e31ddf76371f18d3d72e55658e6adb 100644 (file)
@@ -781,9 +781,9 @@ sub authenticate_2nd_new : prototype($$$$) {
        }
 
        my $realm_type = $realm_tfa && $realm_tfa->{type};
        }
 
        my $realm_type = $realm_tfa && $realm_tfa->{type};
-       $realm_type = 'totp' if $realm_type eq 'oath'; # we used to call it that
        # verify realm type unless using recovery keys:
        if (defined($realm_type)) {
        # verify realm type unless using recovery keys:
        if (defined($realm_type)) {
+           $realm_type = 'totp' if $realm_type eq 'oath'; # we used to call it that
            if ($realm_type eq 'yubico') {
                # Yubico auth will not be supported in rust for now...
                if (!defined($tfa_challenge)) {
            if ($realm_type eq 'yubico') {
                # Yubico auth will not be supported in rust for now...
                if (!defined($tfa_challenge)) {