Fix #172: broken login

This commit is contained in:
Eliot Berriot 2018-04-22 12:10:53 +02:00
parent 93c57f08f9
commit b602ed38e7
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fixed broken login due to badly configured Axios (#172)

View File

@ -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