reset password don't set authorization header
This commit is contained in:
+2
-1
@@ -17,7 +17,7 @@ axios.defaults.timeout = api.defaultTimeout;
|
|||||||
axios.interceptors.request.use(config => {
|
axios.interceptors.request.use(config => {
|
||||||
const token = userState.getToken();
|
const token = userState.getToken();
|
||||||
|
|
||||||
if (token) {
|
if (token && !config.noAuth) {
|
||||||
config.headers.Authorization = `Bearer ${token}`;
|
config.headers.Authorization = `Bearer ${token}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,6 +114,7 @@ export default {
|
|||||||
email,
|
email,
|
||||||
password
|
password
|
||||||
}, {
|
}, {
|
||||||
|
noAuth: true,
|
||||||
ignoreError: true
|
ignoreError: true
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user