mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 00:39:16 +02:00
Fix #172: broken login
This commit is contained in:
parent
93c57f08f9
commit
b602ed38e7
2 changed files with 2 additions and 1 deletions
1
changes/changelog.d/172.bugfix
Normal file
1
changes/changelog.d/172.bugfix
Normal file
|
@ -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.defaults.baseURL = config.API_URL
|
||||||
axios.interceptors.request.use(function (config) {
|
axios.interceptors.request.use(function (config) {
|
||||||
// Do something before request is sent
|
// Do something before request is sent
|
||||||
if (store.state.auth.authenticated) {
|
if (store.state.auth.token) {
|
||||||
config.headers['Authorization'] = store.getters['auth/header']
|
config.headers['Authorization'] = store.getters['auth/header']
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue