Fix #172: broken login

merge-requests/154/head
Eliot Berriot 2018-04-22 12:10:53 +02:00
rodzic 93c57f08f9
commit b602ed38e7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

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