X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=PVE%2FAuth%2FPVE.pm;h=6065df08411eb7e0d5c716b43abc78284821b428;hp=8714a6b6a5131a47ab65942c9402d9025736f20f;hb=63358f40b36266a1d9df2fbb8477935d16b5f1c5;hpb=972859d115184cb2c0a22e12f4107c165a977a56 diff --git a/PVE/Auth/PVE.pm b/PVE/Auth/PVE.pm index 8714a6b..6065df0 100755 --- a/PVE/Auth/PVE.pm +++ b/PVE/Auth/PVE.pm @@ -3,6 +3,7 @@ package PVE::Auth::PVE; use strict; use warnings; +use PVE::Tools; use PVE::Auth::Plugin; use PVE::Cluster qw(cfs_register_file cfs_read_file cfs_write_file cfs_lock_file); @@ -92,7 +93,7 @@ sub store_password { lock_shadow_config(sub { my $shadow_cfg = cfs_read_file($shadowconfigfile); - my $epw = PVE::Auth::Plugin::encrypt_pw($password); + my $epw = PVE::Tools::encrypt_pw($password); $shadow_cfg->{users}->{$username}->{shadow} = $epw; cfs_write_file($shadowconfigfile, $shadow_cfg); });