From: Wolfgang Bumiller Date: Mon, 6 Dec 2021 08:38:00 +0000 (+0100) Subject: fix a 'use of undefined...' warning X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=commitdiff_plain;h=7262f24391854cf470436c6b244c6bbb2170e826;ds=sidebyside fix a 'use of undefined...' warning Signed-off-by: Wolfgang Bumiller --- diff --git a/src/PVE/AccessControl.pm b/src/PVE/AccessControl.pm index 168fc26..51a96a3 100644 --- a/src/PVE/AccessControl.pm +++ b/src/PVE/AccessControl.pm @@ -781,9 +781,9 @@ sub authenticate_2nd_new : prototype($$$$) { } 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)) { + $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)) {