]> git.proxmox.com Git - pve-access-control.git/commitdiff
typo fixup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 15 Apr 2019 07:08:24 +0000 (09:08 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 15 Apr 2019 07:08:24 +0000 (09:08 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
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 $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}, {
        # old style config, find the type via the realm
        return if !$realm_tfa;
        return ($realm_tfa->{type}, {