Allow cookies on login
This commit is contained in:
@@ -112,7 +112,8 @@ export default new Vuex.Store({
|
|||||||
data: {
|
data: {
|
||||||
username: credentials.email,
|
username: credentials.email,
|
||||||
password: credentials.password
|
password: credentials.password
|
||||||
}
|
},
|
||||||
|
withCredentials: true
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
commit('login', response.data.token);
|
commit('login', response.data.token);
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
@@ -203,6 +204,6 @@ export default new Vuex.Store({
|
|||||||
watchlistCount: state => state.userData.watchList.length,
|
watchlistCount: state => state.userData.watchList.length,
|
||||||
onWatchlist: (state) => (uid) => state.userData.watchList.indexOf(uid) !== -1,
|
onWatchlist: (state) => (uid) => state.userData.watchList.indexOf(uid) !== -1,
|
||||||
isLoggedIn: state => !!state.authToken,
|
isLoggedIn: state => !!state.authToken,
|
||||||
isTeamer: state => !!state.userData.isTeamer,
|
isTeamer: state => !!state.userData.isTeamer
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user