Subpages of registration/ must be unauthenticated

This commit is contained in:
Robert Schäfer 2019-07-08 17:55:50 +02:00
parent 29bbeaa0fa
commit 813a6b5c50

View File

@ -0,0 +1,14 @@
<template>
<nuxt-child />
</template>
<script>
export default {
layout: 'default',
asyncData({ store, redirect }) {
if (store.getters['auth/isLoggedIn']) {
redirect('/')
}
},
}
</script>