X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=PVE%2FAccessControl.pm;fp=PVE%2FAccessControl.pm;h=06c649d2e4ddaa2ed006bdedf5d31f88053ccea4;hp=de353b1bf139ada2573c717b0d40980b419a0fe5;hb=0a956b943ad3c3156ba87fde79f918898fa4c66a;hpb=7e58c66de2b9e0dbf8764420762f9812d0c6f96a diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm index de353b1..06c649d 100644 --- a/PVE/AccessControl.pm +++ b/PVE/AccessControl.pm @@ -1464,7 +1464,7 @@ sub user_get_tfa { if $realm_tfa; # new style config starts with an 'x' and optionally contains a ! suffix - if ($keys != /^x(?:!.*)?$/) { + if ($keys !~ /^x(?:!.*)?$/) { # old style config, find the type via the realm return if !$realm_tfa; return ($realm_tfa->{type}, {