diff options
Diffstat (limited to 'actions/password.php')
-rw-r--r-- | actions/password.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/password.php b/actions/password.php index 6eba136ce..3a89c99d3 100644 --- a/actions/password.php +++ b/actions/password.php @@ -64,6 +64,12 @@ class PasswordAction extends SettingsAction { $user->password = common_munge_password($newpassword, $user->id); + $val = $user->validate(); + if ($val !== TRUE) { + $this->show_form(_t('Error saving user; invalid.')); + return; + } + if (!$user->update($original)) { common_server_error(_t('Can\'t save new password.')); return; |