Unverified Commit 79753d77 authored by Agate's avatar Agate 💬
Browse files

Refresh site on logout to avoid CSRF issues

parent f4e9037f
......@@ -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
async check ({commit, dispatch, state}) {
logger.default.info('Checking authentication…')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment