Allow cookies on login

This commit is contained in:
Björn Fromme
2019-09-28 10:26:34 +02:00
parent 8cd0aabe29
commit 9db2fd456d
@@ -112,7 +112,8 @@ export default new Vuex.Store({
data: {
username: credentials.email,
password: credentials.password
}
},
withCredentials: true
}).then(response => {
commit('login', response.data.token);
}).catch(error => {
@@ -203,6 +204,6 @@ export default new Vuex.Store({
watchlistCount: state => state.userData.watchList.length,
onWatchlist: (state) => (uid) => state.userData.watchList.indexOf(uid) !== -1,
isLoggedIn: state => !!state.authToken,
isTeamer: state => !!state.userData.isTeamer,
isTeamer: state => !!state.userData.isTeamer
}
});