mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
made login respect the env variable by using loginAPI file
This commit is contained in:
parent
0fa707797c
commit
04c772b1e4
@ -69,11 +69,11 @@ export const store = new Vuex.Store({
|
|||||||
login: async ({ dispatch, commit }, data) => {
|
login: async ({ dispatch, commit }, data) => {
|
||||||
// console.log('action: login')
|
// console.log('action: login')
|
||||||
|
|
||||||
axios.post("http://localhost/login_api/unsecureLogin/",
|
//axios.post("http://localhost/login_api/unsecureLogin/",
|
||||||
{"email": data.email, "password":data.password }).then((result) => {
|
// {"email": data.email, "password":data.password }).then((result) => {
|
||||||
// console.log("store login result", 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.state',result.data.state)
|
||||||
// console.log('result.data.session_id',result.data.session_id)
|
// 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')
|
// console.log('action login to logout start')
|
||||||
dispatch('logout')
|
dispatch('logout')
|
||||||
}
|
}
|
||||||
}, (error) => {
|
//}, (error) => {
|
||||||
console.log(error);
|
// console.log(error);
|
||||||
});
|
//});
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user