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) => {
|
||||
// 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);
|
||||
//});
|
||||
|
||||
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user