change loginUser in api.php 

change loginUser in api.php
- to authenticate with the apache authentication
- delete useless ocsApiRequest
Because this is the exact same body as the previous if body