From 27a6cda16b605ab4f957629f782317e9ebf77a88 Mon Sep 17 00:00:00 2001 From: Luk Puk Date: Fri, 7 Jul 2017 10:03:13 +0200 Subject: [PATCH] New password bugfix --- controllers/UserController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);