kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Fix #172: broken login
rodzic
93c57f08f9
commit
b602ed38e7
|
@ -0,0 +1 @@
|
|||
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
|
||||
|
|
Ładowanie…
Reference in New Issue