From 9db2fd456df702f892686997c40b35c4949d845d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Sat, 28 Sep 2019 10:26:34 +0200 Subject: [PATCH] Allow cookies on login --- .../ext/ep_theme/Resources/Private/Assets/js/store/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/store/index.js b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/store/index.js index 7ed6e933..052bc390 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/store/index.js +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/store/index.js @@ -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 } });