Pubstwo 889 Client side authentication functionality done

This is a little confusing to me because of potentially overlapping names. The method signature is $http.post(url, data, config). An acceptable key in the third argument, the config object is 'params'. Currently, you have 'params' as a property in the second argument, the data object. Do you want to post json that has a 'params' key inside of it, and a username and password properties inside of that, or do you want to post a json object that just has username and password properties? Either way, it will be clearer to the next developer if you add a comment to explicitly document your intent.