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


git-svn-id: svn://10.0.0.236/trunk@265406 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org
2014-05-20 06:00:48 +00:00
parent 75cda21df3
commit 650d813242
3 changed files with 5 additions and 3 deletions

View File

@@ -1 +1 @@
9034
9035

View File

@@ -1 +1 @@
1ac08617fe8ba89cea149d4b53d4382b84f8fbe9
41b3c0cf022dc052aec35e1675dbdb13e8c7459c

View 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();
}