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

Commit

Permalink
fix #323 - login data sent in request body
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Chmielowiec committed Feb 16, 2017
1 parent 93accb3 commit 13d2c58
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 13d2c58

Please sign in to comment.