mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-08 21:44:32 +02:00
Fix #80 - Cannot access accounts with proxy header auth
This commit is contained in:
5
resources/js/api.js
vendored
5
resources/js/api.js
vendored
@ -40,6 +40,11 @@ Vue.axios.interceptors.response.use(response => response, error => {
|
||||
routeName = 'login'
|
||||
}
|
||||
|
||||
if ( error.response.status === 407 ) {
|
||||
router.push({ name: 'genericError', params: { err: error.response, closable: false } })
|
||||
throw new Vue.axios.Cancel();
|
||||
}
|
||||
|
||||
// api calls are stateless so when user inactivity is detected
|
||||
// by the backend middleware it cannot logout the user directly
|
||||
// so it returns a 418 response.
|
||||
|
Reference in New Issue
Block a user