Configure http provider

This commit is contained in:
manzerbredes 2016-02-07 11:10:44 +01:00
parent bd81674a85
commit cfe4616c4a
2 changed files with 11 additions and 4 deletions
client/js/requests

View file

@ -28,8 +28,7 @@ identity.requestParser = {};
*/
identity.request.login=function($http,username, password,projectname){
return $http.post('../server/index.php',
$.param({"task" : "Authenticate", "user" : username, "password" : password, "project" : projectname}),
{headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}});
$.param({"task" : "Authenticate", "user" : username, "password" : password, "project" : projectname}));
};