diff options
author | Brion Vibber <brion@pobox.com> | 2009-12-01 15:44:07 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-12-01 15:46:49 -0800 |
commit | 0c0f92845992b251c86c55979896d1ea1b9c7276 (patch) | |
tree | bba01ad117d74637afcd01c918ee5446a5be7a31 /actions | |
parent | edb2578e939ee59fa664c922c5f5d916219bcf8c (diff) |
Fix regression in password settings: users have been unable to change their passwords since introduction of ChangePassword event (later StartChangePassword) November 5 in commit d6ddb84132d7b9510ba82064c67f2a39822dab49
Logic was inversed; new password was only being saved if a plugin claimed the event; so when no auth plugin was present to take it, passwords never got saved.
Diffstat (limited to 'actions')
-rw-r--r-- | actions/passwordsettings.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/passwordsettings.php b/actions/passwordsettings.php index 11d7bf785..46ed1df7e 100644 --- a/actions/passwordsettings.php +++ b/actions/passwordsettings.php @@ -170,7 +170,7 @@ class PasswordsettingsAction extends AccountSettingsAction } $success = false; - if(! Event::handle('StartChangePassword', array($user, $oldpassword, $newpassword))){ + if(Event::handle('StartChangePassword', array($user, $oldpassword, $newpassword))){ //no handler changed the password, so change the password internally $original = clone($user); |