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:
@@ -1 +1 @@
|
||||
9034
|
||||
9035
|
||||
@@ -1 +1 @@
|
||||
1ac08617fe8ba89cea149d4b53d4382b84f8fbe9
|
||||
41b3c0cf022dc052aec35e1675dbdb13e8c7459c
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user