wire frontend email signup
This commit is contained in:
parent
e47535f91c
commit
ed0d02959a
5 changed files with 297 additions and 24 deletions
|
|
@ -29,6 +29,32 @@ const router = createRouter({
|
|||
guestOnly: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/check-email',
|
||||
name: 'check-email',
|
||||
component: () => import('@/views/CheckEmailView.vue'),
|
||||
meta: {
|
||||
guestOnly: true,
|
||||
},
|
||||
beforeEnter: () => {
|
||||
if (!useAuthStore().signupCompleted) {
|
||||
return { name: 'signup' }
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/confirm-email',
|
||||
name: 'confirm-email',
|
||||
component: () => import('@/views/ConfirmEmailView.vue'),
|
||||
meta: {
|
||||
guestOnly: true,
|
||||
},
|
||||
beforeEnter: (to) => {
|
||||
if (typeof to.query.token !== 'string' || to.query.token === '') {
|
||||
return { name: 'signup' }
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/dashboard',
|
||||
name: 'dashboard',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue