diff --git a/controllers/UserController.php b/controllers/UserController.php index 4fc9579..6eca2c6 100644 --- a/controllers/UserController.php +++ b/controllers/UserController.php @@ -114,7 +114,9 @@ public function updateAccountAction() return; } - $user->setPassword($_POST['new_password']); + if (trim($_POST['new_password'])) { + $user->setPassword($_POST['new_password']); + } $user->setPostData($_POST); try { $user->save($_POST);