X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpasswordsettings.php;h=3bb8e3bb9f9d1e6fedf058c27c8e2ceb4877e9b6;hb=73297d374974a431b40d0cc45a7180613b8d5762;hp=9e79501e2df5a6546a6f3d73fb57da637b2b74c1;hpb=935410e8dc4c2d4d286a942cc27bbf8bc452fbdd;p=quix0rs-gnu-social.git diff --git a/actions/passwordsettings.php b/actions/passwordsettings.php index 9e79501e2d..3bb8e3bb9f 100644 --- a/actions/passwordsettings.php +++ b/actions/passwordsettings.php @@ -110,7 +110,7 @@ class PasswordsettingsAction extends AccountSettingsAction $this->elementEnd('li'); $this->elementStart('li'); $this->password('confirm', _('Confirm'), - _('same as password above')); + _('Same as password above')); $this->elementEnd('li'); $this->elementEnd('ul'); @@ -170,7 +170,7 @@ class PasswordsettingsAction extends AccountSettingsAction } $success = false; - if(! Event::handle('StartChangePassword', array($user->nickname, $oldpassword, $newpassword))){ + if(Event::handle('StartChangePassword', array($user, $oldpassword, $newpassword))){ //no handler changed the password, so change the password internally $original = clone($user); @@ -186,7 +186,7 @@ class PasswordsettingsAction extends AccountSettingsAction $this->serverError(_('Can\'t save new password.')); return; } - Event::handle('EndChangePassword', array($nickname)); + Event::handle('EndChangePassword', array($user)); } $this->showForm(_('Password saved.'), true);