mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
fixes part 6
This commit is contained in:
25
resources/js/store/modules/userAuth.js
vendored
25
resources/js/store/modules/userAuth.js
vendored
@@ -37,13 +37,26 @@ const actions = {
|
||||
})
|
||||
}, 300)
|
||||
|
||||
axios.post('/logout').then(() => {
|
||||
clearTimeout(popup)
|
||||
commit('DESTROY_DATA')
|
||||
commit('SET_AUTHORIZED', false)
|
||||
axios
|
||||
.post('/logout')
|
||||
.then(() => {
|
||||
clearTimeout(popup)
|
||||
|
||||
router.push({ name: 'Homepage' })
|
||||
})
|
||||
commit('DESTROY_DATA')
|
||||
commit('SET_AUTHORIZED', false)
|
||||
|
||||
router.push({name: 'Homepage'})
|
||||
})
|
||||
.catch((error) => {
|
||||
if (error.response.status === 419) {
|
||||
clearTimeout(popup)
|
||||
|
||||
commit('DESTROY_DATA')
|
||||
commit('SET_AUTHORIZED', false)
|
||||
|
||||
router.push({name: 'Homepage'})
|
||||
}
|
||||
})
|
||||
},
|
||||
socialiteRedirect: ({ commit }, provider) => {
|
||||
axios
|
||||
|
||||
Reference in New Issue
Block a user