query ('CALL account.userChangePassword (#, #)', [$oldPassword, $newPassword]); Account::sync ($db, $_SESSION['user'], $newPassword); return TRUE; } }