From 04c772b1e49d6c3c8f257f85a038861b9ab25947 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 18 Mar 2021 17:11:16 +0100 Subject: [PATCH] made login respect the env variable by using loginAPI file --- frontend/src/store/store.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js index a75e34a5e..788f52d2e 100644 --- a/frontend/src/store/store.js +++ b/frontend/src/store/store.js @@ -69,11 +69,11 @@ export const store = new Vuex.Store({ login: async ({ dispatch, commit }, data) => { // console.log('action: login') - axios.post("http://localhost/login_api/unsecureLogin/", - {"email": data.email, "password":data.password }).then((result) => { + //axios.post("http://localhost/login_api/unsecureLogin/", + // {"email": data.email, "password":data.password }).then((result) => { // console.log("store login result", result) - // const result = await loginAPI.login(data.email,data.password) + const result = await loginAPI.login(data.email,data.password) // console.log('result.data.state',result.data.state) // console.log('result.data.session_id',result.data.session_id) @@ -89,9 +89,9 @@ export const store = new Vuex.Store({ // console.log('action login to logout start') dispatch('logout') } - }, (error) => { - console.log(error); - }); + //}, (error) => { + // console.log(error); + //}); },