Skip to content
Snippets Groups Projects
Unverified Commit 79753d77 authored by Agate's avatar Agate :speech_balloon:
Browse files

Refresh site on logout to avoid CSRF issues

parent f4e9037f
Branches develop
No related tags found
No related merge requests found
...@@ -168,7 +168,10 @@ export default { ...@@ -168,7 +168,10 @@ export default {
commit(`${m}/reset`, null, {root: true}) commit(`${m}/reset`, null, {root: true})
}) })
logger.default.info('Log out, goodbye!') 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}) { async check ({commit, dispatch, state}) {
logger.default.info('Checking authentication…') logger.default.info('Checking authentication…')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment