diff options
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-x | editusers.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editusers.cgi b/editusers.cgi index a70e3fcf2..a1eccd956 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -38,6 +38,7 @@ require "globals.pl"; use Bugzilla; use Bugzilla::User; use Bugzilla::Constants; +use Bugzilla::Auth; # Shut up misguided -w warnings about "used only once". "use vars" just # doesn't work for me. @@ -452,7 +453,7 @@ if ($action eq 'new') { "emailflags, disabledtext" . " ) VALUES ( " . SqlQuote($user) . "," . - SqlQuote(Crypt($password)) . "," . + SqlQuote(bz_crypt($password)) . "," . SqlQuote($realname) . "," . SqlQuote(Bugzilla::Constants::DEFAULT_EMAIL_SETTINGS) . "," . SqlQuote($disabledtext) . ")" ); @@ -784,7 +785,7 @@ if ($action eq 'update') { if ( $editall && $password ) { my $passworderror = ValidatePassword($password); if ( !$passworderror ) { - my $cryptpassword = SqlQuote(Crypt($password)); + my $cryptpassword = SqlQuote(bz_crypt($password)); my $loginname = SqlQuote($userold); SendSQL("UPDATE profiles SET cryptpassword = $cryptpassword |