]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/AccessControl.pm
typo fixup
[pve-access-control.git] / PVE / AccessControl.pm
index de353b1bf139ada2573c717b0d40980b419a0fe5..06c649d2e4ddaa2ed006bdedf5d31f88053ccea4 100644 (file)
@@ -1464,7 +1464,7 @@ sub user_get_tfa {
        if $realm_tfa;
 
     # new style config starts with an 'x' and optionally contains a !<type> suffix
-    if ($keys != /^x(?:!.*)?$/) {
+    if ($keys !~ /^x(?:!.*)?$/) {
        # old style config, find the type via the realm
        return if !$realm_tfa;
        return ($realm_tfa->{type}, {