fix user changePassword method

This commit is contained in:
yuri
2017-03-31 13:53:48 +03:00
parent a7982acc8f
commit ba5fef320e
+1 -1
View File
@@ -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) {