wire frontend email signup

This commit is contained in:
Yisroel Baum 2026-08-03 20:34:16 +03:00
parent e47535f91c
commit ed0d02959a
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
5 changed files with 297 additions and 24 deletions

View file

@ -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',