change loginUser in api.php 

change loginUser in api.php
- to authenticate with the apache authentication
- delete useless ocsApiRequest