]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix regression in password settings: users have been unable to change their passwords...
authorBrion Vibber <brion@pobox.com>
Tue, 1 Dec 2009 23:44:07 +0000 (15:44 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 1 Dec 2009 23:44:07 +0000 (15:44 -0800)
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.

actions/passwordsettings.php

index 4395f772bd91de91e4fa459d339b590e05da4a87..3bb8e3bb9f9d1e6fedf058c27c8e2ceb4877e9b6 100644 (file)
@@ -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);