]> 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:49:46 +0000 (13:49 +0800)
committerByron Jones <glob@mozilla.com>
Tue, 20 May 2014 05:51:42 +0000 (13:51 +0800)
re-encrypted and their password does not match the current complexity
rule
r=dkl, a=glob

Bugzilla/Auth/Verify/DB.pm

index a5b78797bc2c68ba51acaeee47a88dde5963fa53..d4a4674d3c4d9a902a3ed032f4945da9c740a773 100644 (file)
@@ -82,7 +82,9 @@ sub check_credentials {
 
     # If needed, update the user's password.
     if ($update_password) {
-        $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();
     }