change loginUser in api.php 

change loginUser in api.php
- to authenticate with the apache authentication
- delete useless ocsApiRequest
just move that to the if statement above and OR combine them.