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}, {