diff --git a/front/src/store/auth.js b/front/src/store/auth.js index ed69bfc44..c28e8849d 100644 --- a/front/src/store/auth.js +++ b/front/src/store/auth.js @@ -168,7 +168,10 @@ export default { commit(`${m}/reset`, null, {root: true}) }) logger.default.info('Log out, goodbye!') - router.push({name: 'index'}) + await router.push({name: 'index'}, () => { + // refresh to get a new CSRF token + window.location.reload(true) + }) }, async check ({commit, dispatch, state}) { logger.default.info('Checking authentication…')