]> 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:46:49 +0000 (15:46 -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 11d7bf785317dd7628999e495abbfc91123571c5..46ed1df7e7d053ae79fb3d06d04821f6891de2d0 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);