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 --- userprefs.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'userprefs.cgi') diff --git a/userprefs.cgi b/userprefs.cgi index 1c9cf2068..6950fea88 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -28,6 +28,7 @@ use lib qw(.); use Bugzilla; use Bugzilla::Constants; use Bugzilla::Search; +use Bugzilla::Auth; require "CGI.pl"; @@ -94,7 +95,7 @@ sub SaveAccount { || ThrowUserError("new_password_missing"); ValidatePassword($pwd1, $pwd2); - my $cryptedpassword = SqlQuote(Crypt($pwd1)); + my $cryptedpassword = SqlQuote(bz_crypt($pwd1)); SendSQL("UPDATE profiles SET cryptpassword = $cryptedpassword WHERE userid = $userid"); -- cgit v1.2.3-24-g4f1b