Fix regression in password settings: users have been unable to change their passwords since introduction of ChangePassword event (later StartChangePassword) November 5 in commit d6ddb84132
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.
This commit is contained in:
parent
15a9c86979
commit
a3a2168292
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user