diff options
author | travis%sedsystems.ca <> | 2005-02-01 04:26:00 +0100 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-02-01 04:26:00 +0100 |
commit | 5ddb84da8800728b887f2497a205fad01c44be8a (patch) | |
tree | fe0142c706d425c17148cb2f634461e285f247c7 /editusers.cgi | |
parent | c4b39497330fb3849989b3ebda7fec317643e9db (diff) | |
download | bugzilla-5ddb84da8800728b887f2497a205fad01c44be8a.tar.gz bugzilla-5ddb84da8800728b887f2497a205fad01c44be8a.tar.xz |
Bug 278792 : Move Crypt() to Bugzilla::Auth
Patch by Max Kanat-Alexander <mkanat@kerio.com> r=vladd a=justdave
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 |