package PVE::Auth::PAM;
use strict;
+use warnings;
+
use PVE::Tools qw(run_command);
use PVE::Auth::Plugin;
use Authen::PAM qw(:constants);
return {
default => { optional => 1 },
comment => { optional => 1 },
+ tfa => { optional => 1 },
};
}
my $cmd = ['usermod'];
- my $epw = PVE::Auth::Plugin::encrypt_pw($password);
+ my $epw = PVE::Tools::encrypt_pw($password);
push @$cmd, '-p', $epw, $username;