fixed user logout bug

This commit is contained in:
Bachir Soussi Chiadmi 2024-10-19 22:37:12 +02:00
parent 81ab0ccfd7
commit 5c40959059
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -197,7 +197,7 @@ export default {
console.log('User Loggedin', state.isAdmin, state.isAdherent)
// have to reload systematicly because of autologout library not loaded if not logged in the begining
if (state.isAdmin) {
// window.location.reload()
window.location.reload()
}
if (state.isAdherent) {
// router.push({
@ -205,7 +205,7 @@ export default {
// })
// // TODO: openCloseHamMenu(false)
// dispatch('Common/openCloseHamMenu', false)
// window.location = '/base'
window.location = '/base'
}
// else {
// // * window.location.reload()
@ -449,8 +449,8 @@ export default {
REST.post('/user/logout?format=json&token=' + state.logout_token, params, config)
.then(resp => {
console.log('userLogout resp', resp)
// commit('setLoggedOut')
// window.location.reload(true)
commit('setLoggedOut')
// window.location.reload(true) ???
})
.catch(error => {
console.warn('Issue with logout', error)