]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1009017: users are unable to log in if their password needs to be
authorByron Jones <glob@mozilla.com>
Tue, 20 May 2014 05:50:48 +0000 (13:50 +0800)
committerByron Jones <glob@mozilla.com>
Tue, 20 May 2014 05:50:48 +0000 (13:50 +0800)
re-encrypted and their password does not match the current complexity
rule
r=dkl, a=glob

Bugzilla/Auth/Verify/DB.pm

index 6ca04f25976ff84ec6cef68ffc315bc275d8384c..99dc48ddc1f651fa19ad3f5b84203eb349c9c1ae 100644 (file)
@@ -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();
     }