From 7262f24391854cf470436c6b244c6bbb2170e826 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 6 Dec 2021 09:38:00 +0100 Subject: [PATCH] fix a 'use of undefined...' warning Signed-off-by: Wolfgang Bumiller --- src/PVE/AccessControl.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.39.2