From: Byron Jones Date: Tue, 20 May 2014 05:50:48 +0000 (+0800) Subject: Bug 1009017: users are unable to log in if their password needs to be X-Git-Tag: bugzilla-4.4.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7f5857fdb5bd06e27c0238215ecd24d9c580db8;p=thirdparty%2Fbugzilla.git Bug 1009017: users are unable to log in if their password needs to be re-encrypted and their password does not match the current complexity rule r=dkl, a=glob --- diff --git a/Bugzilla/Auth/Verify/DB.pm b/Bugzilla/Auth/Verify/DB.pm index 6ca04f2597..99dc48ddc1 100644 --- a/Bugzilla/Auth/Verify/DB.pm +++ b/Bugzilla/Auth/Verify/DB.pm @@ -68,7 +68,9 @@ sub check_credentials { # whatever hashing system we're using now. my $current_algorithm = PASSWORD_DIGEST_ALGORITHM; if ($real_password_crypted !~ /{\Q$current_algorithm\E}$/) { - $user->set_password($password); + # We can't call $user->set_password because we don't want the password + # complexity rules to apply here. + $user->{cryptpassword} = bz_crypt($password); $user->update(); }