From 5ddb84da8800728b887f2497a205fad01c44be8a Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Tue, 1 Feb 2005 03:26:00 +0000 Subject: Bug 278792 : Move Crypt() to Bugzilla::Auth Patch by Max Kanat-Alexander r=vladd a=justdave --- editusers.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'editusers.cgi') 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 -- cgit v1.2.3-24-g4f1b