From 13d2c585d2e219dd8cde051fc32b5df139e7f78e Mon Sep 17 00:00:00 2001 From: Daniel Chmielowiec Date: Thu, 16 Feb 2017 14:05:46 +0100 Subject: [PATCH] fix #323 - login data sent in request body --- src/actions/AppActions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/AppActions.js b/src/actions/AppActions.js index 92150f3a4..38698f42e 100644 --- a/src/actions/AppActions.js +++ b/src/actions/AppActions.js @@ -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(){