]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/Auth/PAM.pm
fix another typo
[pve-access-control.git] / PVE / Auth / PAM.pm
index 04f0d93b808cc1e61ba2cc29b12e0c5950bc2b66..42feba8cae9092b81ca79a2b35c69675164f2257 100755 (executable)
@@ -17,6 +17,7 @@ sub options {
     return {
        default => { optional => 1 },
        comment => { optional => 1 },
+       tfa => { optional => 1 },
     };
 }
 
@@ -65,7 +66,7 @@ sub store_password {
 
     my $cmd = ['usermod'];
 
-    my $epw = PVE::Auth::Plugin::encrypt_pw($password);
+    my $epw = PVE::Tools::encrypt_pw($password);
 
     push @$cmd, '-p', $epw, $username;