Verified Commit b602ed38 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix #172: broken login

parent 93c57f08
Fixed broken login due to badly configured Axios (#172)
......@@ -42,7 +42,7 @@ Vue.directive('title', {
axios.defaults.baseURL = config.API_URL
axios.interceptors.request.use(function (config) {
// Do something before request is sent
if (store.state.auth.authenticated) {
if (store.state.auth.token) {
config.headers['Authorization'] = store.getters['auth/header']
}
return config
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment