Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #324 from metasfresh/dev-323
Browse files Browse the repository at this point in the history
fix #323 - login data sent in request body
  • Loading branch information
damianprzygodzki committed Feb 16, 2017
2 parents 93accb3 + 13d2c58 commit 711b9ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/AppActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export function updateUri(pathname, query, prop, value) {
}
}

export function loginRequest(login, passwd){
return () => axios.post(config.API_URL + '/login/authenticate?username=' + login + '&password=' + passwd);
export function loginRequest(username, password){
return () => axios.post(config.API_URL + '/login/authenticate', { username, password });
}

export function localLoginRequest(){
Expand Down

0 comments on commit 711b9ef

Please sign in to comment.