change loginUser in api.php to authenticate with the apache authentication and delete useless ocApiRequest