diff --git a/application/Espo/Services/User.php b/application/Espo/Services/User.php index b711d365c0..64935ecc9b 100644 --- a/application/Espo/Services/User.php +++ b/application/Espo/Services/User.php @@ -97,7 +97,7 @@ class User extends Record return $result; } - public function changePassword($userId, $password, $checkCurrentPassword = false, $currentPassword) + public function changePassword($userId, $password, $checkCurrentPassword = false, $currentPassword = null) { $user = $this->getEntityManager()->getEntity('User', $userId); if (!$user) {