Browse Source

fixed user logout bug

bach 1 month ago
parent
commit
5c40959059

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.js


BIN
web/themes/custom/materiotheme/assets/dist/main.js.gz


+ 4 - 4
web/themes/custom/materiotheme/vuejs/store/modules/user.js

@@ -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)

Some files were not shown because too many files changed in this diff