summaryrefslogtreecommitdiff
path: root/actions/passwordsettings.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-12-01 15:44:07 -0800
committerBrion Vibber <brion@pobox.com>2009-12-01 15:44:07 -0800
commita3a2168292855ce99246b6244084be58552e8172 (patch)
treeafdec162779efaa4e95547cb4960e1edb686041d /actions/passwordsettings.php
parent15a9c869794ea3948086afa5310696e1250d9a26 (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/passwordsettings.php')
-rw-r--r--actions/passwordsettings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/passwordsettings.php b/actions/passwordsettings.php
index 4395f772b..3bb8e3bb9 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);