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

Refresh site on logout to avoid CSRF issues

parent f4e9037f
No related branches found
No related tags found
No related merge requests found
......@@ -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…')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment