diff options
author | Byron Jones <glob@mozilla.com> | 2014-05-20 13:49:46 +0800 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-05-20 13:51:42 +0800 |
commit | 41b3c0cf022dc052aec35e1675dbdb13e8c7459c (patch) | |
tree | a937a86920f033d6c44adcb816b36c78340a9582 | |
parent | 1ac08617fe8ba89cea149d4b53d4382b84f8fbe9 (diff) | |
download | bugs-41b3c0cf022dc052aec35e1675dbdb13e8c7459c.tar bugs-41b3c0cf022dc052aec35e1675dbdb13e8c7459c.tar.gz bugs-41b3c0cf022dc052aec35e1675dbdb13e8c7459c.tar.bz2 bugs-41b3c0cf022dc052aec35e1675dbdb13e8c7459c.tar.xz bugs-41b3c0cf022dc052aec35e1675dbdb13e8c7459c.zip |
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
-rw-r--r-- | Bugzilla/Auth/Verify/DB.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Auth/Verify/DB.pm b/Bugzilla/Auth/Verify/DB.pm index a5b78797b..d4a4674d3 100644 --- a/Bugzilla/Auth/Verify/DB.pm +++ b/Bugzilla/Auth/Verify/DB.pm @@ -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(); } |